Skip to content

Commit

Permalink
Add some comments about tricky way to remember closed private tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Sep 5, 2014
1 parent e5e7bb9 commit e4d37d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap.js
Expand Up @@ -1259,6 +1259,7 @@ var privateTab = {
tabClosingHandler: function(e) {
if(this.oldSessionStore || !prefs.get("rememberClosedPrivateTabs"))
return;
//~ hack: manually add closed private tab to undo close history
var tab = e.originalTarget || e.target;
if(!tab.hasAttribute(this.privateAttr))
return;
Expand Down Expand Up @@ -1290,7 +1291,7 @@ var privateTab = {
state: tabState,
title: tabTitle,
image: this.getTabIcon(tab),
pos: tab._tPos,
pos: tab._tPos, // Note: missing in SeaMonkey, but SeaMonkey still use old nsISessionStore
closedAt: Date.now()
});
var length = closedTabs.length;
Expand Down

0 comments on commit e4d37d0

Please sign in to comment.