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

Unified Diff: content/test/data/post_message2.html

Issue 10827078: Support frame tree propagation between renderers in the same browsing instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another round of fixes based on Charlie's review. Created 8 years, 4 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: content/test/data/post_message2.html
diff --git a/content/test/data/post_message2.html b/content/test/data/post_message2.html
new file mode 100644
index 0000000000000000000000000000000000000000..2e0cfe5f32daac053c275f50008304ac35618254
--- /dev/null
+++ b/content/test/data/post_message2.html
@@ -0,0 +1,21 @@
+<html>
+
+<head><title>Post message subframe tests</title>
+<script>
+ function postToOpenerFrame(msg, origin) {
+ window.opener.frames[0][1].postMessage(msg, origin);
+ return true;
+ }
+
+ window.addEventListener("message", messageReceived, false);
+
+ function messageReceived(event) {
+ // Change the title to generate a notification.
+ document.title = event.data;
+ }
+</script>
+</head>
+
+<iframe id="frame1" src="frame_tree/1-1.html"></iframe>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698