diff --git a/platform/firefox/frameModule.js b/platform/firefox/frameModule.js index 8fa5519..ad24e49 100644 --- a/platform/firefox/frameModule.js +++ b/platform/firefox/frameModule.js @@ -127,7 +127,9 @@ const contentObserver = { context = context.contentWindow || context; try { - openerURL = context.opener.location.href; + 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 { - openerURL = context.opener.location.href; + if ( context !== context.opener ) { + openerURL = context.opener.location.href; + } } catch (ex) {} } else { context = (context.ownerDocument || context).defaultView;