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