blob: 8e085dae0b72917d64bb727b419c55e130c2db9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
add_task(async function parent_to_remote() {
await BrowserTestUtils.withNewTab("about:mozilla", async browser => {
let originalBC = browser.browsingContext;
BrowserTestUtils.loadURI(browser, "https://example.com/");
await BrowserTestUtils.browserLoaded(browser);
let newBC = browser.browsingContext;
isnot(originalBC.id, newBC.id, "Should have replaced the BrowsingContext");
});
});
add_task(async function remote_to_parent() {
await BrowserTestUtils.withNewTab("https://example.com/", async browser => {
let originalBC = browser.browsingContext;
BrowserTestUtils.loadURI(browser, "about:mozilla");
await BrowserTestUtils.browserLoaded(browser);
let newBC = browser.browsingContext;
isnot(originalBC.id, newBC.id, "Should have replaced the BrowsingContext");
});
});
|