Skip to content

Commit

Permalink
Add debug logs about manually hidden tracking protection icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Dec 8, 2015
1 parent d487c62 commit b2be6ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3777,8 +3777,13 @@ var privateTab = {
if(prefs.get("patchDownloads"))
this.updateDownloadPanel(window, isPrivate);
if(!isPrivate && "TrackingProtection" in window) window.setTimeout(function() { // Firefox 42+
if(!window.TrackingProtection.enabled)
if(
!window.TrackingProtection.enabled
&& window.TrackingProtection.icon.hasAttribute("state")
) {
window.TrackingProtection.icon.removeAttribute("state");
_log("Hide tracking protection icon");
}
}, 0);
},
updateTabsInTitlebar: function(document, force) {
Expand Down

0 comments on commit b2be6ac

Please sign in to comment.