Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/popup-blocked-from-wrong-event.html

Issue 2379313002: Fix 'noopener' targeting and return value. (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <a id="link" onclick="test()">click here</a> 7 <a id="link" onclick="test()">click here</a>
8 <object type="application/x-shockwave-flash" id="obj"></object> 8 <object type="application/x-shockwave-flash" id="obj"></object>
9 <pre id="console"></pre> 9 <pre id="console"></pre>
10 <script> 10 <script>
(...skipping 20 matching lines...) Expand all
31 var obj = document.querySelector("#obj"); 31 var obj = document.querySelector("#obj");
32 obj.focus(); 32 obj.focus();
33 obj.click(); 33 obj.click();
34 var mousedown = document.createEvent("MouseEvents"); 34 var mousedown = document.createEvent("MouseEvents");
35 mousedown.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); 35 mousedown.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
36 obj.dispatchEvent(mousedown); 36 obj.dispatchEvent(mousedown);
37 var mouseup = document.createEvent("MouseEvents"); 37 var mouseup = document.createEvent("MouseEvents");
38 mouseup.initMouseEvent("mouseup", true, true, window, 0, 0, 0, 0, 0, fal se, false, false, false, 0, null); 38 mouseup.initMouseEvent("mouseup", true, true, window, 0, 0, 0, 0, 0, fal se, false, false, false, 0, null);
39 obj.dispatchEvent(mouseup); 39 obj.dispatchEvent(mouseup);
40 // ... and we should not be able to open a new popup. 40 // ... and we should not be able to open a new popup.
41 shouldBeUndefined("window.open('about:blank')"); 41 shouldBeNull("window.open('about:blank')");
42 finishJSTest(); 42 finishJSTest();
43 } 43 }
44 </script> 44 </script>
45 </body> 45 </body>
46 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698