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

Unified Diff: content/test/data/post_message.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: Moved away from hardcoded strings and no static cast needed for tests. 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_message.html
diff --git a/content/test/data/post_message.html b/content/test/data/post_message.html
index 76ea08d996eb60776fbac0981c42eded634115a4..6d3982ec1310690aed1367eb5c2df2dcb89068d7 100644
--- a/content/test/data/post_message.html
+++ b/content/test/data/post_message.html
@@ -14,6 +14,13 @@
w.postMessage(msg, "*");
return true;
}
+
+ // Send a message to a subframe of window named "foo".
+ function postToFooFrame(msg) {
+ var w = window.open("", "foo");
+ w.frames[0][0].postMessage(msg, "*");
+ return true;
+ }
// Listen to incoming messages.
var receivedMessages = 0;

Powered by Google App Engine
This is Rietveld 408576698