mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
cb015ad1d8
Differential Revision: https://phabricator.services.mozilla.com/D167152
24 lines
833 B
JavaScript
24 lines
833 B
JavaScript
add_task(async function parent_to_remote() {
|
|
await BrowserTestUtils.withNewTab("about:mozilla", async browser => {
|
|
let originalBC = browser.browsingContext;
|
|
|
|
BrowserTestUtils.loadURIString(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.loadURIString(browser, "about:mozilla");
|
|
await BrowserTestUtils.browserLoaded(browser);
|
|
let newBC = browser.browsingContext;
|
|
|
|
isnot(originalBC.id, newBC.id, "Should have replaced the BrowsingContext");
|
|
});
|
|
});
|