Skip to content

Commit

Permalink
Ensure that state of closed private tab contains private attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Aug 26, 2015
1 parent b77e324 commit 26663d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,15 @@ var privateTab = {
if(SessionStoreInternal._shouldSaveTabState(tabState)) {
this.dontSaveClosedPrivateTabs(true);
_log("tabClosingHandler(): save closed private tab in undo close history");
if(
!("attributes" in tabState)
|| !(this.privateAttr in tabState.attributes)
) {
var attrs = tabState.attributes
|| (tabState.attributes = new (Components.utils.getGlobalForObject(tabState)).Object());
attrs[this.privateAttr] = "true";
_log("tabClosingHandler(): fix private attribute");
}
var tabTitle = tab.label;
var gBrowser = window.gBrowser;
if("_replaceLoadingTitle" in SessionStoreInternal)
Expand Down

0 comments on commit 26663d7

Please sign in to comment.