forked from mirrors/gecko-dev
Bug 1894305 - [bidi] Add new trace log for Navigate:waitForInitialNavigationCompleted r=webdriver-reviewers,whimboo
Depends on D209047 This additional log could help debug what happens on the Github macos-latest workers Differential Revision: https://phabricator.services.mozilla.com/D209048
This commit is contained in:
parent
6793fdac6f
commit
ba9bcbe549
1 changed files with 6 additions and 1 deletions
|
|
@ -91,9 +91,14 @@ export async function waitForInitialNavigationCompleted(
|
|||
isInitial = browsingContext.currentWindowGlobal.isInitialDocument;
|
||||
}
|
||||
|
||||
const isLoadingDocument = listener.isLoadingDocument;
|
||||
lazy.logger.trace(
|
||||
lazy.truncate`[${browsingContext.id}] Wait for initial navigation: isInitial=${isInitial}, isLoadingDocument=${isLoadingDocument}`
|
||||
);
|
||||
|
||||
// If the current document is not the initial "about:blank" and is also
|
||||
// no longer loading, assume the navigation is done and return.
|
||||
if (!isInitial && !listener.isLoadingDocument) {
|
||||
if (!isInitial && !isLoadingDocument) {
|
||||
lazy.logger.trace(
|
||||
lazy.truncate`[${browsingContext.id}] Document already finished loading: ${browsingContext.currentURI?.spec}`
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue