Skip to content

Commit

Permalink
Fix tracking protection icon in location bar for private tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Dec 7, 2015
1 parent 4b498cc commit d1f9979
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3875,8 +3875,10 @@ var privateTab = {
|| stack.indexOf("\ndoSearch@chrome://tabmixplus/content/changecode.js:") != -1;
var fromDownloads = !fromSearchBar && prefs.get("patchDownloads")
&& _this.isStackFromDownloads(stack);
var fromTrackingProtection = !fromSearchBar && !fromDownloads
&& stack.indexOf("@chrome://browser/content/browser-trackingprotection.js:") != -1;
_dbgv && _log(key + "():\n" + stack);
if(fromSearchBar || fromDownloads) try {
if(fromSearchBar || fromDownloads || fromTrackingProtection) try {
var isPrivate = _this.isPrivateContent(window);
_dbgv && _log(key + "(): return state of selected tab: " + isPrivate);
if(fromSearchBar && "privateTab" in window) {
Expand Down

0 comments on commit d1f9979

Please sign in to comment.