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:
Maja Frydrychowicz 2020-01-15 10:10:15 +00:00
parent 6bd841767d
commit 22aa29f8b3

View File

@ -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,