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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/dom/resources/EventListener-incumbent-global-subframe-2.html

Issue 2142173003: binding: Adds layout tests to check origins of window.postMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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: third_party/WebKit/LayoutTests/http/tests/dom/resources/EventListener-incumbent-global-subframe-2.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/dom/resources/EventListener-incumbent-global-subframe-2.html b/third_party/WebKit/LayoutTests/http/tests/dom/resources/EventListener-incumbent-global-subframe-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..75a4ba364766880ccef93e33b41f75632bac83b0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/dom/resources/EventListener-incumbent-global-subframe-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<iframe src="//www2.web-platform.test:8080/dom/resources/EventListener-incumbent-global-subsubframe.html"></iframe>
+<script>
+ document.domain = "web-platform.test";
+ onmessage = function(e) {
+ if (e.data == "start") {
+ frames[0].document.body.addEventListener("click", frames[0].getTheListener());
+ frames[0].postMessage("sendclick", "*");
+ } else {
+ parent.postMessage(e.data, "*");
+ }
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698