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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/wasm/resources/remote_frame.html

Issue 2847063002: [wasm] Ensure postMessage doesn't work cross process. (Closed)
Patch Set: Created 3 years, 8 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/wasm/resources/remote_frame.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/wasm/resources/remote_frame.html b/third_party/WebKit/LayoutTests/http/tests/wasm/resources/remote_frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..aaa0676da8fd83cf2463d4b08f9dd7735eee5885
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/wasm/resources/remote_frame.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script>
+function listener(event) {
+ var ret = event.data;
+ if(!ret) ret = "didn't make it"
jochen (gone - plz use gerrit) 2017/05/02 09:15:12 nit. space after if
+ event.source.postMessage(ret, event.origin);
+}
+
+addEventListener("message", listener, false);
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698