Skip to content

Commit

Permalink
Use delayed loading for tab/browser and loadFrameScript()
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Feb 25, 2016
1 parent 67b486d commit e49f6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ var privateTab = {
var mm = tab.linkedBrowser.messageManager;
mm.loadFrameScript("data:application/javascript," + encodeURIComponent(
"docShell.QueryInterface(Components.interfaces.nsILoadContext).usePrivateBrowsing = " + isPrivate + ";"
), false);
), true);
},
setWindowBusy: function(e, busy) {
_log("setWindowBusy(): " + busy);
Expand Down Expand Up @@ -3548,7 +3548,7 @@ var privateTab = {
}.bind(this);
var mm = tab.linkedBrowser.messageManager;
mm.addMessageListener("PrivateTab:PrivateChanged", feedback);
mm.loadFrameScript("data:application/javascript," + encodeURIComponent(data), false);
mm.loadFrameScript("data:application/javascript," + encodeURIComponent(data), true);
return;
}
if(isPrivate === undefined)
Expand Down

0 comments on commit e49f6cf

Please sign in to comment.