Skip to content

Commit

Permalink
Use toggleTabPrivate() for TabRemotenessChange -> fixTabRemoteness()
Browse files Browse the repository at this point in the history
(to check for last private tab and to dispatch PrivateTab:PrivateChanged API event)
(related to #244)
  • Loading branch information
Infocatcher committed Jan 31, 2017
1 parent ac0d01c commit 1430350
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2252,18 +2252,7 @@ var privateTab = {
return;
}
_log(e.type + ": force make tab " + _p(isPrivate));
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;
}
this.toggleTabPrivate(tab, isPrivate);
},
setWindowBusy: function(e, busy) {
_log("setWindowBusy(): " + busy);
Expand Down

0 comments on commit 1430350

Please sign in to comment.