Skip to content

Commit

Permalink
Correctly detect externally opened tabs in Firefox 38+
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Aug 3, 2015
1 parent 75adfad commit aace034
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,10 @@ var privateTab = {
patcher.wrapFunction(
browserProto, "loadURIWithFlags", "browser.loadURIWithFlags",
function before(aURI, aFlags, aReferrerURI, aCharset, aPostData) {
var params = aFlags;
if(params && typeof params == "object") // Firefox 38+
aFlags = params.flags;
_dbgv && _log("loadURIWithFlags() flags: " + aFlags);
if(
aFlags & Components.interfaces.nsIWebNavigation.LOAD_FLAGS_FROM_EXTERNAL
&& _this.isPrivateWindow(this.contentWindow || this.contentWindowAsCPOW)
Expand Down

0 comments on commit aace034

Please sign in to comment.