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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-ALLOWED-top-navigation-after-postMessage.html

Issue 2467993002: Document user gesture state should be able to propagate over postMessage (Closed)
Patch Set: Created 4 years, 1 month 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
(Empty)
1 <html>
2 <body>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
8
9 window.onload = function() {
10 if (window.eventSender) {
11 var b = document.getElementById("b");
12 eventSender.mouseMoveTo(b.offsetLeft + 2, b.offsetTop + 2);
13 eventSender.mouseDown();
14 eventSender.mouseUp();
15 }
16 }
17
18 function test() {
19 window.frames[0].postMessage('run test', '*');
20 }
21 </script>
22 <button id="b" onclick="test();">Perform test</button>
23 <iframe src="http://localhost:8000/security/frameNavigation/resources/top-naviga te-in-onmessage.html"></iframe>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698