Skip to content

Commit

Permalink
Don't check for last private tab in closing windows:
Browse files Browse the repository at this point in the history
we check it in windowClosingHandler()
  • Loading branch information
Infocatcher committed Dec 13, 2013
1 parent 836e458 commit 23e1f62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,10 @@ var windowsObserver = {
checkForLastPrivateTab: function(e) {
var tab = e.originalTarget || e.target;
var window = tab.ownerDocument.defaultView;
if(!("privateTab" in window)) {
_log("checkForLastPrivateTab(): window is closing, do nothing");
return;
}
if(
window.privateTab._checkLastPrivate
&& this.isPrivateTab(tab)
Expand Down

0 comments on commit 23e1f62

Please sign in to comment.