This commit is contained in:
gorhill 2015-03-31 16:38:47 -04:00
parent f9019524a8
commit 1db1638c7f
1 changed files with 5 additions and 1 deletions

View File

@ -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');
} }