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

Side by Side Diff: extensions/test/data/web_view/inside_iframe/main.js

Issue 801173002: Fix message routing for BrowserPlugin in iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests that don't have a RenderThreadImpl Created 6 years 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 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var startTest = function() {
6 var iframe = document.querySelector('iframe');
7 var iframeWindow = iframe.contentWindow;
8 iframe.addEventListener('load', function(e) {
9 iframeWindow.document.querySelector('#webview-tag-container').innerHTML =
10 '<webview></webview>';
11 var webview = iframeWindow.document.querySelector('webview');
12 webview.addEventListener('loadstop', function(e) {
13 if (!webview.contentWindow) {
14 chrome.test.sendMessage('FAILURE');
15 return;
16 }
17 chrome.test.sendMessage('LAUNCHED');
18 });
19 webview.src = 'data:text/html,<body>Guest</body>';
20 });
21 iframe.src = 'webview.html';
22 };
23
24 window.onload = startTest;
OLDNEW
« no previous file with comments | « extensions/test/data/web_view/inside_iframe/main.html ('k') | extensions/test/data/web_view/inside_iframe/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698