1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-19 19:52:51 +02:00
This commit is contained in:
gorhill 2015-03-31 16:38:47 -04:00
parent f9019524a8
commit 1db1638c7f

View File

@ -133,7 +133,11 @@ vAPI.tabs.onPopup = function(details) {
// https://github.com/gorhill/uBlock/issues/323
// 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');
}