mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
popunder fine tuning: reverting 1d448b85b2
for the time being
This commit is contained in:
parent
eec63a54f6
commit
33291c4dca
@ -629,10 +629,8 @@ vAPI.tabs.onPopupUpdated = (function() {
|
|||||||
var popupType = 'popup';
|
var popupType = 'popup';
|
||||||
var result = popupMatch(openerURL, targetURL, µb.mouseURL, popupType);
|
var result = popupMatch(openerURL, targetURL, µb.mouseURL, popupType);
|
||||||
|
|
||||||
// Popunder test. Ignore if the target URL was opened by clicking on
|
// Popunder test.
|
||||||
// a link, or else this could prevent opening a legitimate site for
|
if ( result === '' ) {
|
||||||
// which there is a very broad popunder filter.
|
|
||||||
if ( result === '' && areDifferentURLs(targetURL, µb.mouseURL) ) {
|
|
||||||
var tmp = openerTabId; openerTabId = targetTabId; targetTabId = tmp;
|
var tmp = openerTabId; openerTabId = targetTabId; targetTabId = tmp;
|
||||||
popupType = 'popunder';
|
popupType = 'popunder';
|
||||||
result = popupMatch(targetURL, openerURL, µb.mouseURL, popupType);
|
result = popupMatch(targetURL, openerURL, µb.mouseURL, popupType);
|
||||||
|
Loading…
Reference in New Issue
Block a user