yload = { contextDetails: data.contextDetails, url: data.url, }; switch (name) { case "WebDriverDocumentInsertedChild:documentInserted": { if (data.contextDetails.isContent) { // There are no navigations in the parent process. lazy.notifyNavigationCommitted(payload); } break; } default: throw new Error("Unsupported message:" + name); } } } PK