Skip to content

Commit

Permalink
Silently ignore missing warnAboutClosingWindow() in SeaMonkey:
Browse files Browse the repository at this point in the history
SeaMonkey doesn't send "last-pb-context-exiting" notifications for now
(workaround for #53, part 9)
  • Loading branch information
Infocatcher committed May 4, 2013
1 parent f9825b1 commit 13beec0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ var windowsObserver = {
);
},
patchWarnAboutClosingWindow: function(window, applyPatch, forceDestroy) {
if(this.isSeaMonkey && !("warnAboutClosingWindow" in window))
return;
this.overridePrivateBrowsingUtils(
window,
window,
Expand Down

0 comments on commit 13beec0

Please sign in to comment.