Skip to content

Commit

Permalink
Also handle non-remote tabs in "TabRemotenessChange" handler
Browse files Browse the repository at this point in the history
E.g. for restored non-remote tabs (now also used to toggle private state using tag duplication)
(#239)
  • Loading branch information
Infocatcher committed Jan 12, 2017
1 parent 679c9dd commit 99a91a5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2235,12 +2235,18 @@ var privateTab = {
return;
}
_log(e.type + ": force make tab " + _p(isPrivate));
var mm = tab.linkedBrowser.messageManager;
this.sendAsyncMessage(window, mm, {
action: "ToggleState",
isPrivate: isPrivate,
silent: true
});
if(this.isRemoteTab(tab)) {
var mm = tab.linkedBrowser.messageManager;
this.sendAsyncMessage(window, mm, {
action: "ToggleState",
isPrivate: isPrivate,
silent: true
});
}
else {
var privacyContext = this.getTabPrivacyContext(tab);
privacyContext.usePrivateBrowsing = isPrivate;
}
},
setWindowBusy: function(e, busy) {
_log("setWindowBusy(): " + busy);
Expand Down

0 comments on commit 99a91a5

Please sign in to comment.