Bug 1474891 - Reset tracking protection state when visiting about: pages. r=ewright a=lizzard
authorJohann Hofmann <jhofmann@mozilla.com>
Wed, 11 Jul 2018 23:41:33 +0200
changeset 477958 fb31b6425bf7
parent 477957 7f495a6969c5
child 477959 0f8a467c6c83
push id9475
push userarchaeopteryx@coole-files.de
push dateFri, 13 Jul 2018 21:33:22 +0000
treeherdermozilla-beta@d7ab2f3df084 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersewright, lizzard
bugs1474891
milestone62.0
Bug 1474891 - Reset tracking protection state when visiting about: pages. r=ewright a=lizzard MozReview-Commit-ID: CsXj95KDVaD
browser/base/content/browser-trackingprotection.js
--- a/browser/base/content/browser-trackingprotection.js
+++ b/browser/base/content/browser-trackingprotection.js
@@ -138,16 +138,17 @@ var TrackingProtection = {
     Services.telemetry.getHistogramById("TRACKING_PROTECTION_SHIELD").add(value);
   },
 
   onSecurityChange(state, isSimulated) {
     let baseURI = this._baseURIForChannelClassifier;
 
     // Don't deal with about:, file: etc.
     if (!baseURI) {
+      this.icon.removeAttribute("state");
       return;
     }
 
     // Only animate the shield if the event was not fired directly from
     // the tabbrowser (due to a browser change).
     if (isSimulated) {
       this.icon.removeAttribute("animate");
     } else {