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

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: Doctype + rebaseline. 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/cross-frame-access.js"></script>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.dumpChildFramesAsText();
9 testRunner.waitUntilDone();
10 }
11
12 receiver = function(e) {
13 if (e.data == "LOADED")
14 deleteTest();
15 };
16
17 var targetWindow;
18 addEventListener('message', function () {
19 targetWindow = document.querySelector('iframe').contentWindow;
20 shouldThrowException('targetWindow.dispatchEvent(new CustomEvent("cl ick"));');
21 shouldThrowException('window.dispatchEvent.call(targetWindow, new Cu stomEvent("click"));');
22
23 if (window.testRunner)
24 testRunner.notifyDone();
25 });
26
27 </script>
28 </head>
29 <body>
30 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for -delete-test.html"></iframe>
31 <pre id="console"></pre>
32 </body>
33 </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