Bug 1474891 - Reset tracking protection state when visiting about: pages. r=ewright draft
authorJohann Hofmann <jhofmann@mozilla.com>
Wed, 11 Jul 2018 23:41:33 +0200
changeset 817038 b1a197ac1eb452e3ce55c998ae7dc6075761767f
parent 814904 fa376bf17cc95539f5e37186977d760296fb5093
push id115941
push userjhofmann@mozilla.com
push dateWed, 11 Jul 2018 21:42:26 +0000
reviewersewright
bugs1474891
milestone63.0a1
Bug 1474891 - Reset tracking protection state when visiting about: pages. r=ewright 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 {