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

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

Issue 1312643002: Plumb opener information when creating RenderFrames and RenderFrameProxies for subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@opener-CreateOpenerProxiesIfNeeded
Patch Set: Rebase and fix arg order in CreateRenderFrame Created 5 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 f20ca5675367b83d24b6c446e47002ce7f00e804..11fdbefc7b640e82e3748dc43e99227e69f5ca7d 100644
--- a/content/test/data/post_message.html
+++ b/content/test/data/post_message.html
@@ -20,6 +20,12 @@
return true;
}
+ // Send a message to our parent's opener.
+ function postToOpenerOfSibling(siblingName, msg, origin) {
+ parent.frames[siblingName].opener.postMessage(msg, origin);
+ return true;
+ }
+
// Send a message to a window named "foo".
function postToFoo(msg) {
var w = window.open("", "foo");
« content/renderer/render_thread_impl.cc ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698