Skipped navigations when chaining navigations with wait=complete
Categories
(Remote Protocol :: WebDriver BiDi, defect, P2)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Unassigned)
References
(Depends on 1 open bug)
Details
(Whiteboard: [webdriver:m14])
Attachments
(1 file)
58.60 KB,
application/x-javascript
|
Details |
Spotted while testing navigations to many "popular" websites.
It doesn't always happen with the same websites but you can use the attached script script_navigations.js with the bidi client at https://juliandescottes.github.io/bidi-web-client/web/
It will attempt to do browsingContext.navigate
with wait=complete
for each website of an array, one after the other. Locally for me this usually starts happening after navigating to marca.com. After that, many navigations will just be immediately completed because we receive a same-document navigation for marca.com after starting the navigation:
1729780572942 RemoteAgent TRACE Received command browsingContext.navigate for destination ROOT
1729780572942 RemoteAgent TRACE Module root/browsingContext.sys.mjs found for ROOT
1729780572942 RemoteAgent TRACE Received command browsingContext._getBaseURL for destination WINDOW_GLOBAL
1729780572942 RemoteAgent TRACE Module windowglobal-in-root/browsingContext.sys.mjs found for WINDOW_GLOBAL
1729780572942 RemoteAgent TRACE Module windowglobal/browsingContext.sys.mjs found for WINDOW_GLOBAL
1729780572943 RemoteAgent TRACE Received command browsingContext._getBaseURL for destination WINDOW_GLOBAL
1729780572944 RemoteAgent TRACE [b9dadc3d-e255-4d4c-b235-b975f177f142] We're going to fail the navigation for url: https://mirror.co.uk/ (1df630db-f729-4c83-9e4b-89224b3ab621), since it was interrupted by a new navigation.
1729780572944 RemoteAgent TRACE [b9dadc3d-e255-4d4c-b235-b975f177f142] Navigation failed for url: https://mirror.co.uk/ (1df630db-f729-4c83-9e4b-89224b3ab621)
1729780572944 RemoteAgent TRACE [431] ProgressListener Start: expectNavigation=true resolveWhenStarted=false unloadTimeout=200 waitForExplicitStart=true
1729780572944 RemoteAgent TRACE [431] ProgressListener Document already loading https://mirror.co.uk/
1729780572944 RemoteAgent TRACE [431] ProgressListener Skip setting the unload timer
1729780572945 RemoteAgent TRACE [431] NavigationListenerChild Location=sameDocumentChanged: https://www.marca.com/
1729780572945 RemoteAgent TRACE [431] NavigationListenerChild Loading state: flags: 131088, status: 2152398850, isStart: false, isStop: true, isNetwork: false, isBindingAborted: true, targetURI: https://mirror.co.uk/
1729780572945 RemoteAgent TRACE [431] NavigationListenerChild Loading state: flags: 983041, status: 0, isStart: true, isStop: false, isNetwork: true, isBindingAborted: false, targetURI: https://ranker.com/
1729780572946 RemoteAgent TRACE [431] ProgressListener Location=sameDocument: https://www.marca.com/
1729780572946 RemoteAgent TRACE [431] ProgressListener Stop: has error=false url=https://www.marca.com/
1729780572948 RemoteAgent TRACE [b9dadc3d-e255-4d4c-b235-b975f177f142] Navigation started for url: https://ranker.com/ (a2223590-0df2-48a9-afd5-424a1010e901)
We should probably ensure that we stop/abort ongoing navigations before starting a new one?
Comment 1•25 days ago
|
||
Thanks Julian. So maybe we can fix it on bug 1837949 and mark this one as being dependent on it?
Reporter | ||
Comment 2•25 days ago
|
||
Sounds good to add the dependency, that might be enough to fix this.
Comment 3•11 days ago
|
||
The severity field is not set for this bug.
:whimboo, could you have a look please?
For more information, please visit BugBot documentation.
Updated•8 days ago
|
Description
•