Skip to content

Commit

Permalink
Detect isWindowPrivate() calls from search bar, if installed Tab Mix …
Browse files Browse the repository at this point in the history
…Plus

(#129)
  • Loading branch information
Infocatcher committed Jan 12, 2014
1 parent 1c43d7d commit f69fb89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3159,7 +3159,8 @@ var windowsObserver = {
return { value: isPrivate };
}
var stack = new Error().stack;
var fromSearchBar = stack.indexOf("@chrome://browser/content/search/search.xml:") != -1;
var fromSearchBar = stack.indexOf("@chrome://browser/content/search/search.xml:") != -1
|| stack.indexOf("\ndoSearch@chrome://tabmixplus/content/changecode.js:") != -1;
var fromDownloads = !fromSearchBar && prefs.get("patchDownloads") && (
stack.indexOf("@chrome://browser/content/downloads/downloads.js:") != -1
|| stack.indexOf("@resource://app/modules/DownloadsCommon.jsm:") != -1
Expand Down

0 comments on commit f69fb89

Please sign in to comment.