From 1db1638c7f52dee727ed20ad183062b5e4e774c3 Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 31 Mar 2015 16:38:47 -0400 Subject: [PATCH] this fixes #1142 --- src/js/tab.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/tab.js b/src/js/tab.js index 93c19ad48..cb174334d 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -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'); }