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

Side by Side Diff: chrome/test/data/extensions/platform_apps/web_view/post_message/guest.html

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: add basic postMessage test Created 5 years, 7 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
OLDNEW
(Empty)
1 <!--
2 * Copyright 2015 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the
4 * LICENSE file.
5 -->
6 <html>
7 <head>
8 </head>
9 <body>
10 postMessage webview test guest.
11
12 <script>
13 window.addEventListener('message', function(e) {
14 window.console.log('post message received.');
15 var data = JSON.parse(e.data);
16 if (data.length == 1 && data[0] === 'ping') {
17 e.source.postMessage(JSON.stringify(['pong']), '*');
18 }
19 });
20 window.console.log('webview load complete');
21 </script>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698