diff options
Diffstat (limited to 'base/content/browser-trackingprotection.js')
-rw-r--r-- | base/content/browser-trackingprotection.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/base/content/browser-trackingprotection.js b/base/content/browser-trackingprotection.js index 22092dd..426ed70 100644 --- a/base/content/browser-trackingprotection.js +++ b/base/content/browser-trackingprotection.js @@ -27,9 +27,6 @@ var TrackingProtection = { gNavigatorBundle.getString("trackingProtection.icon.activeTooltip"); this.disabledTooltipText = gNavigatorBundle.getString("trackingProtection.icon.disabledTooltip"); - - this.enabledHistogramAdd(this.enabledGlobally); - this.disabledPBMHistogramAdd(!this.enabledInPrivateWindows); }, uninit() { @@ -55,34 +52,6 @@ var TrackingProtection = { this.container.hidden = !this.enabled; }, - enabledHistogramAdd(value) { - if (PrivateBrowsingUtils.isWindowPrivate(window)) { - return; - } - Services.telemetry.getHistogramById("TRACKING_PROTECTION_ENABLED").add(value); - }, - - disabledPBMHistogramAdd(value) { - if (PrivateBrowsingUtils.isWindowPrivate(window)) { - return; - } - Services.telemetry.getHistogramById("TRACKING_PROTECTION_PBM_DISABLED").add(value); - }, - - eventsHistogramAdd(value) { - if (PrivateBrowsingUtils.isWindowPrivate(window)) { - return; - } - Services.telemetry.getHistogramById("TRACKING_PROTECTION_EVENTS").add(value); - }, - - shieldHistogramAdd(value) { - if (PrivateBrowsingUtils.isWindowPrivate(window)) { - return; - } - Services.telemetry.getHistogramById("TRACKING_PROTECTION_SHIELD").add(value); - }, - onSecurityChange(state, isSimulated) { if (!this.enabled) { return; @@ -104,24 +73,17 @@ var TrackingProtection = { this.icon.setAttribute("state", "blocked-tracking-content"); this.content.setAttribute("state", "blocked-tracking-content"); - this.shieldHistogramAdd(2); } else if (isAllowing) { this.icon.setAttribute("tooltiptext", this.disabledTooltipText); this.icon.setAttribute("state", "loaded-tracking-content"); this.content.setAttribute("state", "loaded-tracking-content"); - this.shieldHistogramAdd(1); } else { this.icon.removeAttribute("tooltiptext"); this.icon.removeAttribute("state"); this.content.removeAttribute("state"); - // We didn't show the shield - this.shieldHistogramAdd(0); } - - // Telemetry for state change. - this.eventsHistogramAdd(0); }, disableForCurrentPage() { @@ -142,9 +104,6 @@ var TrackingProtection = { "trackingprotection", Services.perms.ALLOW_ACTION); } - // Telemetry for disable protection. - this.eventsHistogramAdd(1); - // Hide the control center. document.getElementById("identity-popup").hidePopup(); @@ -165,9 +124,6 @@ var TrackingProtection = { Services.perms.remove(normalizedUrl, "trackingprotection"); } - // Telemetry for enable protection. - this.eventsHistogramAdd(2); - // Hide the control center. document.getElementById("identity-popup").hidePopup(); |