Browse Source

Firefox: fix tab closing issue (pop-up blocking)

pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
6250109a78
  1. 4
      platform/firefox/frameModule.js

4
platform/firefox/frameModule.js

@ -127,7 +127,9 @@ const contentObserver = {
context = context.contentWindow || context;
try {
if ( context !== context.opener ) {
openerURL = context.opener.location.href;
}
} catch (ex) {}
let isPopup = location.spec === 'about:blank' && openerURL;
@ -139,7 +141,9 @@ const contentObserver = {
context = context.contentWindow || context;
try {
if ( context !== context.opener ) {
openerURL = context.opener.location.href;
}
} catch (ex) {}
} else {
context = (context.ownerDocument || context).defaultView;

Loading…
Cancel
Save