OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Popup Blocked Fake Click on Anchor</title> | 4 <title>Popup Blocked Fake Click on Anchor</title> |
5 <script> | 5 <script> |
6 function test() { | 6 function test() { |
7 document.querySelector("a").dispatchEvent(new MouseEvent("click", {shiftKey: t
rue})); | 7 document.querySelector("a").dispatchEvent(new MouseEvent("click", {shiftKey: t
rue})); |
8 } | 8 } |
9 </script> | 9 </script> |
10 </head> | 10 </head> |
11 <body onload="test()"> | 11 <body onload="test()"> |
12 If the fake click was not blocked then there will be an warning message displaye
d in a new tab. Otherwise, the test passes. | 12 If the fake click was not blocked then there will be a warning message displayed
in a new tab. Otherwise, the test passes. |
13 <a href="data:text/html,<title>PASS</title>you should not see this message if po
pup blocker is enabled"></a> | 13 <a href="popup-success.html">link</a> |
14 </body> | 14 </body> |
15 </html> | 15 </html> |
OLD | NEW |