mirror of https://github.com/gorhill/uBlock.git
this fixes #1142
This commit is contained in:
parent
f9019524a8
commit
1db1638c7f
|
@ -133,7 +133,11 @@ vAPI.tabs.onPopup = function(details) {
|
||||||
|
|
||||||
// https://github.com/gorhill/uBlock/issues/323
|
// https://github.com/gorhill/uBlock/issues/323
|
||||||
// If popup URL is whitelisted, do not block it
|
// If popup URL is whitelisted, do not block it
|
||||||
if ( result === '' && µb.getNetFilteringSwitch(targetURL) ) {
|
if (
|
||||||
|
result === '' &&
|
||||||
|
µb.getNetFilteringSwitch(openerURL) &&
|
||||||
|
µb.getNetFilteringSwitch(targetURL)
|
||||||
|
) {
|
||||||
result = µb.staticNetFilteringEngine.matchStringExactType(context, targetURL, 'popup');
|
result = µb.staticNetFilteringEngine.matchStringExactType(context, targetURL, 'popup');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue