summaryrefslogtreecommitdiffstats
path: root/remote/shared/Navigate.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--remote/shared/Navigate.sys.mjs7
1 files changed, 6 insertions, 1 deletions
diff --git a/remote/shared/Navigate.sys.mjs b/remote/shared/Navigate.sys.mjs
index 9b72c0dfbf..cdb23b54c7 100644
--- a/remote/shared/Navigate.sys.mjs
+++ b/remote/shared/Navigate.sys.mjs
@@ -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}`
);