Skip to content
Permalink
Browse files

Trick to move tab to another window

Looks like works trick with docShell.inheritPrivateBrowsingId = false (for disabled e10s)
Thanks to Dumby: https://forum.mozilla-russia.org/viewtopic.php?pid=737516#p737516
(#242)
  • Loading branch information...
Infocatcher committed May 29, 2017
1 parent d01d323 commit e4b923adcef18e17a837b9ea90eb4e359e4969f8
Showing with 14 additions and 1 deletion.
  1. +14 −1 bootstrap.js
@@ -1061,7 +1061,20 @@ var privateTab = {
_log("swapDocShells(): can't get, tab not found for " + _str(_spec(otherBrowser)));
return;
}
before.isPrivate = _this.isPrivateTab(tab);
var isPrivate = _this.isPrivateTab(tab);
if(
isPrivate
&& this.getAttribute("remote") != "true"
&& otherBrowser.getAttribute("remote") != "true"
&& !this.docShell.hasLoadedNonBlankURI
) {
_log("swapDocShells(): usePrivateBrowsing = true, inheritPrivateBrowsingId = false");
this.docShell.QueryInterface(Components.interfaces.nsILoadContext)
.usePrivateBrowsing = true;
otherBrowser.docShell.inheritPrivateBrowsingId = false;
return;
}
before.isPrivate = isPrivate;
_log("swapDocShells(): usePrivateBrowsing: " + before.isPrivate);
}
catch(e) {

0 comments on commit e4b923a

Please sign in to comment.
You can’t perform that action at this time.