Bug 1602686 - Check that navigation has completed; r=remote-protocol-reviewers,whimboo
authorMaja Frydrychowicz <mjzffr@gmail.com>
Wed, 15 Jan 2020 10:10:15 +0000
changeset 510322 28abd2840682f762f865e07d2713e3d0b3c4410d
parent 510321 ecfa4ec62870b9e688e3634610100b765bfc3eb5
child 510323 46e1717494fbf0f1913e22052c3304fe9f7c19b8
child 510324 75bc7533c8994e526f50c18e55d131c7f05da6f7
push id37018
push usercsabou@mozilla.com
push dateWed, 15 Jan 2020 15:47:40 +0000
treeherdermozilla-central@28abd2840682 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersremote-protocol-reviewers, whimboo
bugs1602686
milestone74.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1602686 - Check that navigation has completed; r=remote-protocol-reviewers,whimboo Differential Revision: https://phabricator.services.mozilla.com/D59914
remote/test/browser/page/browser_createIsolatedWorld.js
--- a/remote/test/browser/page/browser_createIsolatedWorld.js
+++ b/remote/test/browser/page/browser_createIsolatedWorld.js
@@ -38,18 +38,25 @@ add_task(async function createContextRun
   await assertEventOrder({ history, expectedEvents: [] });
 });
 
 add_task(async function contextCreatedAfterNavigation({ client }) {
   const { Runtime, Page } = 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,
     grantUniversalAccess: true,
   });
   await assertEventOrder({
     history,
     expectedEvents: [