| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 chrome.test.log('executing panel.js ...'); | |
| 6 | |
| 7 // panel-subframe has to be navigated to another SiteInstance, so that in | |
| 8 // --isolate-extensions mode it gets kicked out to another renderer process and | |
| 9 // therefore has to go through the browser process when trying to find a frame | |
| 10 // via window.open that gets called from panel-subframe.js (this will go through | |
| 11 // BrowsingInstance checks in the browser process). | |
| 12 chrome.test.getConfig(function(config) { | |
| 13 var baseUri = 'http://foo.com:' + config.testServer.port + | |
| 14 '/extensions/api_test/window_open/panel_browsing_instance/'; | |
| 15 | |
| 16 chrome.test.log('navigating panel-subframe ...'); | |
| 17 var subframe = document.getElementById('panel-subframe-id'); | |
| 18 subframe.src = baseUri + | |
| 19 'panel-subframe.html?extensionId=' + chrome.runtime.id; | |
| 20 }); | |
| OLD | NEW |