Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 }); |
| OLD | NEW |