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

Side by Side Diff: content/test/data/browser_plugin_post_message_guest.html

Issue 10829225: Browser Plugin: Add HTML5-like postMessage support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed crash + cleanup Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <script>
2 window.addEventListener('message', receiveMessage, false);
nasko 2012/09/19 21:19:59 nit: This makes more sense to be after the actual
Fady Samuel 2012/09/20 15:24:28 Done.
3 function receiveMessage(event) {
4 if (event.data != 'stop') {
nasko 2012/09/19 21:19:59 !==
Fady Samuel 2012/09/20 15:24:28 Done.
5 event.source.postMessage('foobar', '*');
6 } else {
7 event.source.postMessage('stop_ack', '*');
8 }
9 }
10 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698