mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D4563 --HG-- extra : source : 390737876a61c5da48a1957d284d3c315fbd541a extra : intermediate-source : f0b190c1cfb5d2df482f1051bbc0ff98de71235b
14 lines
615 B
JavaScript
14 lines
615 B
JavaScript
// Check that entering moz://a into the address bar directs us to a new url
|
|
add_task(async function() {
|
|
let path = getRootDirectory(gTestPath).substring("chrome://mochitests/content/".length);
|
|
await SpecialPowers.pushPrefEnv({
|
|
set: [["toolkit.mozprotocol.url", `https://example.com/${path}mozprotocol.html`]],
|
|
});
|
|
|
|
await BrowserTestUtils.withNewTab("about:blank", async function() {
|
|
BrowserTestUtils.loadURI(gBrowser, "moz://a");
|
|
await BrowserTestUtils.waitForLocationChange(gBrowser,
|
|
`https://example.com/${path}mozprotocol.html`);
|
|
ok(true, "Made it to the expected page");
|
|
});
|
|
});
|