mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1147911 Part 4: Fix test to allow for separate file content process. r=ochameau
This commit is contained in:
parent
c547888b81
commit
145a67c6d0
@ -7,7 +7,6 @@
|
||||
|
||||
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;
|
||||
|
||||
@ -22,7 +21,9 @@ add_task(function* () {
|
||||
dir.append(TEST_FILE);
|
||||
let uri = Services.io.newFileURI(dir);
|
||||
|
||||
let { browser } = yield loadTab(TEST_URI);
|
||||
// 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");
|
||||
|
||||
hud = yield openConsole();
|
||||
hud.jsterm.clearOutput();
|
||||
|
@ -46,10 +46,10 @@ const DOCS_GA_PARAMS = "?utm_source=mozilla" +
|
||||
|
||||
flags.testing = true;
|
||||
|
||||
function loadTab(url) {
|
||||
function loadTab(url, preferredRemoteType) {
|
||||
let deferred = promise.defer();
|
||||
|
||||
let tab = gBrowser.selectedTab = gBrowser.addTab(url);
|
||||
let tab = gBrowser.selectedTab = gBrowser.addTab(url, { preferredRemoteType });
|
||||
let browser = gBrowser.getBrowserForTab(tab);
|
||||
|
||||
browser.addEventListener("load", function onLoad() {
|
||||
|
Loading…
Reference in New Issue
Block a user