Skip to content

Commit

Permalink
Restore indication of tracking protection, if extesion was disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Dec 7, 2015
1 parent 6e215dc commit 2d0d619
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,16 @@ var privateTab = {
if("TrackingProtection" in window) { // Firefox 42+
var identityPopup = document.getElementById("identity-popup");
identityPopup && identityPopup.removeEventListener("popupshowing", this, true);
if(reason != WINDOW_CLOSED) try {
window.TrackingProtection.updateEnabled();
if(!window.TrackingProtection.enabled)
window.TrackingProtection.icon.removeAttribute("state");
if(window.XULBrowserWindow && "_state" in window.XULBrowserWindow)
window.TrackingProtection.onSecurityChange(window.XULBrowserWindow._state, true /*aIsSimulated*/);
}
catch(e) {
Components.utils.reportError(e);
}
}
this.setupListAllTabs(window, false);
this.setupUndoCloseTabs(window, false);
Expand Down

0 comments on commit 2d0d619

Please sign in to comment.