mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 1328257: Fix browser_webconsole_bug_595223_file_uri.js test when separate file content process disabled. r=ochameau
MozReview-Commit-ID: IeC00eWt3fm
This commit is contained in:
parent
fbe86342ad
commit
35f48c08cb
@ -21,9 +21,11 @@ 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", E10SUtils.FILE_REMOTE_TYPE);
|
||||
// Open tab with correct remote type so we don't switch processes when we load
|
||||
// the file:// URI, otherwise we won't get the same web console.
|
||||
let remoteType = E10SUtils.getRemoteTypeForURI(uri.spec,
|
||||
gMultiProcessBrowser);
|
||||
let { browser } = yield loadTab("about:blank", remoteType);
|
||||
|
||||
hud = yield openConsole();
|
||||
hud.jsterm.clearOutput();
|
||||
|
Loading…
Reference in New Issue
Block a user