Skip to content

Commit

Permalink
Correctly toggle private state of pending tabs
Browse files Browse the repository at this point in the history
(docShell isn't initialized yet, so we can modify .usePrivateBrowsing)
(#237)
  • Loading branch information
Infocatcher committed Jan 21, 2017
1 parent 7efde44 commit 9649d3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2537,9 +2537,10 @@ var privateTab = {
var isPrivate = useDupTab
? !this.isPrivateTab(tab) // Just get state
: this.toggleTabPrivate(tab);
if(!useDupTab && this.isPendingTab(tab)) {
if(this.isPendingTab(tab)) {
_log("toggleContextTabPrivate() -> isPendingTab -> fixTabState()");
this.fixTabState(tab, isPrivate);
delete tab._privateTabIgnore;
}
else {
var autoReload = prefs.get("toggleTabPrivateAutoReload");
Expand Down

0 comments on commit 9649d3a

Please sign in to comment.