1 add_task(async function test_multiple_pushState() {
2 await BrowserTestUtils.withNewTab(
6 // eslint-disable-next-line @microsoft/sdl/no-insecure-url
7 "http://example.org/browser/docshell/test/browser/file_multiple_pushState.html",
9 async function (browser) {
10 // eslint-disable-next-line @microsoft/sdl/no-insecure-url
11 const kExpected = "http://example.org/bar/ABC/DEF?key=baz";
13 let contentLocation = await SpecialPowers.spawn(
17 return content.document.location.href;
21 is(contentLocation, kExpected);
22 is(browser.documentURI.spec, kExpected);