mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1602686 - Check that navigation has completed; r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D59914 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
6bd841767d
commit
22aa29f8b3
@ -43,8 +43,15 @@ add_task(async function contextCreatedAfterNavigation({ client }) {
|
||||
const history = recordEvents(Runtime, 4);
|
||||
await Runtime.enable();
|
||||
info("Runtime notifications are enabled");
|
||||
await Page.enable();
|
||||
info("Page notifications are enabled");
|
||||
info("Navigating...");
|
||||
const { frameId } = await Page.navigate({ url: DOC });
|
||||
|
||||
// Workaround for Bug 1603776 TODO
|
||||
const { frame } = await Page.frameNavigated();
|
||||
is(frame.url, DOC, "Navigated to expected url");
|
||||
|
||||
const { executionContextId: isolatedId } = await Page.createIsolatedWorld({
|
||||
frameId,
|
||||
worldName: WORLD_NAME_3,
|
||||
|
Loading…
Reference in New Issue
Block a user