зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 7dc106b54960 (bug 1147911)
This commit is contained in:
Родитель
76e65255e0
Коммит
473a23f31e
|
@ -7,6 +7,7 @@
|
|||
|
||||
const PREF = "devtools.webconsole.persistlog";
|
||||
const TEST_FILE = "test-network.html";
|
||||
const TEST_URI = "data:text/html;charset=utf8,<p>test file URI";
|
||||
|
||||
var hud;
|
||||
|
||||
|
@ -21,9 +22,7 @@ add_task(function* () {
|
|||
dir.append(TEST_FILE);
|
||||
let uri = Services.io.newFileURI(dir);
|
||||
|
||||
// We need a file remote type to make sure we don't switch processes when we
|
||||
// load the file:// URI.
|
||||
let { browser } = yield loadTab("about:blank", "file");
|
||||
let { browser } = yield loadTab(TEST_URI);
|
||||
|
||||
hud = yield openConsole();
|
||||
hud.jsterm.clearOutput();
|
||||
|
|
|
@ -46,10 +46,10 @@ const DOCS_GA_PARAMS = "?utm_source=mozilla" +
|
|||
|
||||
flags.testing = true;
|
||||
|
||||
function loadTab(url, preferredRemoteType) {
|
||||
function loadTab(url) {
|
||||
let deferred = promise.defer();
|
||||
|
||||
let tab = gBrowser.selectedTab = gBrowser.addTab(url, { preferredRemoteType });
|
||||
let tab = gBrowser.selectedTab = gBrowser.addTab(url);
|
||||
let browser = gBrowser.getBrowserForTab(tab);
|
||||
|
||||
browser.addEventListener("load", function onLoad() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче