blob: ee49f9d477b0cf805fc7ad25938351dc760ade2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
"use strict";
/**
* Disable keyword.enabled (so no keyword search), and check that when
* you type in "example" and hit enter, the browser shows an error page.
*/
add_task(async function () {
await SpecialPowers.pushPrefEnv({
set: [["keyword.enabled", false]],
});
await BrowserTestUtils.withNewTab(
{ gBrowser, url: "about:blank" },
async function (browser) {
gURLBar.value = "example";
gURLBar.select();
const loadPromise = BrowserTestUtils.waitForErrorPage(browser);
EventUtils.sendKey("return");
await loadPromise;
ok(true, "error page is loaded correctly");
}
);
});
|