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

Side by Side Diff: content/test/data/frame_tree/page_with_post_message_frames.html

Issue 1046933005: Refactor postMessage for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Charlie's nits Created 5 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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/data/post_message.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head><title>postMessage tests</title>
3 <script>
4 window.addEventListener("message", messageReceived, false);
5
6 function messageReceived(event) {
7 document.title = event.data;
8 event.source.postMessage(event.data + "-reply", "*");
9 }
10
11 </script>
12 </head>
13 <body>
14 This page has two iframes that send postMessages: one is same-site, one is
15 cross-site.
16 <iframe name="subframe1" src="/post_message.html"></iframe>
17 <iframe name="subframe2" src="/cross-site/foo.com/post_message.html"></iframe>
18 </body>
19 </html>
20
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/data/post_message.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698