Skip to content

Commit

Permalink
Correct hasPrivateTab(): ignore closing tabs (animations!)
Browse files Browse the repository at this point in the history
(related to #129)
  • Loading branch information
Infocatcher committed Feb 11, 2014
1 parent 514ec75 commit b69ef60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3311,7 +3311,9 @@ var windowsObserver = {
return Array.some(
window.gBrowser.tabs,
function(tab) {
return tab != ignoreTab && this.isPrivateTab(tab);
return tab != ignoreTab
&& !tab.closing
&& this.isPrivateTab(tab);
},
this
);
Expand Down

0 comments on commit b69ef60

Please sign in to comment.