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

Unified Diff: LayoutTests/http/tests/security/cross-frame-access-dispatchEvent-expected.txt

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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/cross-frame-access-dispatchEvent-expected.txt
diff --git a/LayoutTests/http/tests/security/cross-frame-access-dispatchEvent-expected.txt b/LayoutTests/http/tests/security/cross-frame-access-dispatchEvent-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..36b146290b63fb972ff8b1d6d9fad1d7e9022cb4
--- /dev/null
+++ b/LayoutTests/http/tests/security/cross-frame-access-dispatchEvent-expected.txt
@@ -0,0 +1,9 @@
+
+PASS: targetWindow.dispatchEvent(new CustomEvent("click")); should have thrown an exception, and did: SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.
+PASS: window.dispatchEvent.call(targetWindow, new CustomEvent("click")); should have thrown an exception, and did: SecurityError: Failed to execute 'dispatchEvent' on 'EventTarget': Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.
+
+
+--------
+Frame: '<!--framePath //<!--frame0-->-->'
+--------
+
« no previous file with comments | « LayoutTests/http/tests/security/cross-frame-access-dispatchEvent.html ('k') | Source/bindings/scripts/code_generator_v8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698