зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6bd841767d
Коммит
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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче