To test the ability of extensions to block popups copy following filter to own filter.
Deactivate all other filter/lists to avoid interactions.
||dev.adblockextreme.org^$popup
|about:blank$popup,domain=dev.adblockextreme.org
&popunder=$popup
Adblock Extreme | Adblock Plus | uBlock Origin | Test | Description | Code |
Chrome Version: 2017.8.24 |
Chrome Version: 1.13.3 |
Chrome Version: 1.13.8 |
|||
✔ | ✔ | ✔ | The simplest test. Ad popup is opened directly. |
open('//dev.adblockextreme.org'); |
|
✔ | ✔ | ✔ | Empty popup with 'about:blank'. | open('about:blank'); |
|
✔ | ✔ | ✔ | No given source. Is handled internally as 'about:blank'. |
open(''); |
|
✔ | ✔ | ✔ |
1. popup with 'data:text' is opened 2. opener tab changes URL to 'dev.adblockextreme.org' |
var w = open('data:text');
w.location.href = '//dev.adblockextreme.org';
|
|
✔ | ✔ | buggy |
1. popup with invalid pseudo protocol is opened 2. opener tab changes URL to 'dev.adblockextreme.org' |
var w = open('ddata:text');
w.location.href = '//dev.adblockextreme.org';
|
|
✔ | ✔ | sometimes |
1. popup with clean site is opened 2. opener tab changes URL to 'dev.adblockextreme.org' |
var w = open('//adblockextreme.org');
w.location.href = '//dev.adblockextreme.org';
|
|
✔ | ✔ | ✔ | 1. popup with certificate error is opened | open('//107.155.101.179/?a=1&popunder=');
|
|
✔ | ✔ | ✔ | 1. popup with specifications is opened | open('//dev.adblockextreme.org', '', 'height=400, width=400');
|
|
✔ | sometimes | ✔ |
1. popup with clean site is opened 2. opener tab changes URL to 'about:blank' |
var w = open('//adblockextreme.org');
w.location.href = 'about:blank';
|
|
✔ | X | X | Test 10 |
This is not a popup and should NOT be closed. Extension should recognize new tab is opened with a link, not with JavaScript. Only valid if test 1 is passed. |
<a href=//dev.adblockextreme.org target=_blank>Test</a>
|
✔ | X | buggy |
1. popup with clean site is opened 2. opener tab changes URL to 'dev.adblockextreme.org' with setTimeout after 1 second |
var w = open('//adblockextreme.org');
setTimeout(function(){w.location.href = '//dev.adblockextreme.org'}, 1E3);
|
|
✔ | X | buggy |
1. popup with clean site is opened 2. opener tab changes URL to another clean site with setTimeout after 2 seconds 3. opener tab changes URL to 'about:blank' |
var w = open('//adblockextreme.org');
setTimeout(function(){w.location.href = '//lists.adblockextreme.org'}, 2E3);
setTimeout(function(){w.location.href = 'about:blank'}, 2E3);
|
|
✔ | X | buggy |
1. popup with clean site is opened 2. target tab changes URL to 'dev.adblockextreme.org' with JavaScript |
open('//adblockextreme.org/popupslocation');
location.href='//dev.adblockextreme.org';
|
|
✔ | X | buggy |
1. popup with clean site is opened 2. target tab changes URL to 'dev.adblockextreme.org' with meta refresh element |
open('//adblockextreme.org/popupsmeta');
<meta content="0; url=//dev.adblockextreme.org" http-equiv=refresh>
|
|
✔ | X | X |
1. popup with clean site is opened 2. opener tab changes URL to another clean site 3. target tab changes URL to another clean site 4. click manually on test link 5. 'dev.adblockextreme.org' is opened but should NOT be closed. Extension should recognize manually interaction by user in step 4. Only valid if tests 9 and 10 are passed. |
open('//adblockextreme.org/popupslocation1');
w.location.href = '//adblockextreme.org/popupslocation2';
location.href='//adblockextreme.org/popupslink';
<a href=//dev.adblockextreme.org>Test</a>
|