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

Side by Side Diff: chrome/test/data/extensions/api_test/webrtc_from_web_accessible_resource/test.js

Issue 1383483007: Add scheme exceptions for isSecureContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Nits and fixes Created 5 years, 2 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 chrome.test.getConfig(function(config) { 5 chrome.test.getConfig(function(config) {
6 var iframe = document.createElement('iframe'); 6 var iframe = document.createElement('iframe');
robwu 2015/10/08 21:25:18 This variable seems unused, remove it. And you co
jww 2015/10/09 21:39:26 I cleaned this up a bit, but it's now necessary fo
7 iframe.src = 7 var url =
8 'http://a.com:' + config.testServer.port + '/extensions/test_file.html'; 8 'http://a.com:' + config.testServer.port + '/extensions/test_file.html';
9 iframe.onload = function() { chrome.test.sendMessage('iframe loaded'); } 9 chrome.tabs.create({ 'url': url })
10 document.body.appendChild(iframe);
11 }); 10 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698