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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-dispatchEvent.html

Issue 150203016: Add cross-origin BindingsSecurity checks to 'EventTarget::dispatchEvent'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test. Created 6 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-dispatchEvent-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
jochen (gone - plz use gerrit) 2014/02/12 09:27:19 doctype missing
2 <head>
3 <script src="resources/cross-frame-access.js"></script>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.dumpChildFramesAsText();
8 testRunner.waitUntilDone();
9 }
10
11 receiver = function(e) {
12 if (e.data == "LOADED")
13 deleteTest();
14 };
15
16 var targetWindow;
17 addEventListener('message', function () {
18 targetWindow = document.querySelector('iframe').contentWindow;
19 shouldThrowException('targetWindow.dispatchEvent(new CustomEvent("cl ick"));');
20 shouldThrowException('window.dispatchEvent.call(targetWindow, new Cu stomEvent("click"));');
21
22 if (window.testRunner)
23 testRunner.notifyDone();
24 });
25
26 </script>
27 </head>
28 <body>
29 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for -delete-test.html"></iframe>
30 <pre id="console"></pre>
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-dispatchEvent-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698