mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-17 01:43:08 +09:00
14 lines
587 B
JavaScript
14 lines
587 B
JavaScript
// Check that entering moz://a into the address bar directs us to a new url
|
|
add_task(function*() {
|
|
let path = getRootDirectory(gTestPath).substring("chrome://mochitests/content/".length);
|
|
yield SpecialPowers.pushPrefEnv({
|
|
set: [["toolkit.mozprotocol.url", `https://example.com/${path}mozprotocol.html`]],
|
|
});
|
|
|
|
yield BrowserTestUtils.withNewTab("about:blank", function*() {
|
|
gBrowser.loadURI("moz://a");
|
|
yield BrowserTestUtils.waitForLocationChange(gBrowser,
|
|
`https://example.com/${path}mozprotocol.html`);
|
|
ok(true, "Made it to the expected page");
|
|
});
|
|
});
|