diff --git a/bootstrap.js b/bootstrap.js index 3e45db6..26253e7 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -1044,8 +1044,8 @@ var windowsObserver = { this.toggleTabPrivate(tab, isPrivate); else { window.setTimeout(function() { - if(tab.parentNode) // Handle only not yet closed tabs - this.setTabState(tab); + if(tab.parentNode) // Handle only not yet closed tabs + check attribute from nsISessionStore + this.setTabState(tab, tab.hasAttribute(this.privateAttr) || undefined); }.bind(this), 0); }