mirror of https://github.com/gorhill/uBlock.git
this fixes #452
This commit is contained in:
parent
6214591fb8
commit
a9089b3120
|
@ -163,7 +163,11 @@ const contentObserver = {
|
||||||
context.opener !== context &&
|
context.opener !== context &&
|
||||||
this.ignoredPopups.has(context) === false
|
this.ignoredPopups.has(context) === false
|
||||||
) {
|
) {
|
||||||
openerURL = context.opener.location.href;
|
// https://github.com/gorhill/uBlock/issues/452
|
||||||
|
// Use location of top window, not that of a frame, as this
|
||||||
|
// would cause tab id lookup (necessary for popup blocking) to
|
||||||
|
// always fail.
|
||||||
|
openerURL = context.opener.top && context.opener.top.location.href;
|
||||||
}
|
}
|
||||||
} else if ( type === this.SUB_FRAME ) {
|
} else if ( type === this.SUB_FRAME ) {
|
||||||
context = context.contentWindow;
|
context = context.contentWindow;
|
||||||
|
|
Loading…
Reference in New Issue