Sometimes "WebDriver:Navigate" with a PageLoadStrategy of "none" returns before navigation has started
Categories
(Remote Protocol :: Marionette, defect, P3)
Tracking
(firefox102 fixed)
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: whimboo, Assigned: Sasha)
References
Details
(Whiteboard: [bidi-m3-mvp])
Attachments
(1 file)
When the page load strategy is set to none
the navigation commands have to return once a navigation has been started. But with our current implementation this can even happen before. The reason for such a behavior shows the following code:
Similar to the situation when we don't expect a load event, we return immediately when a page load strategy of none
is selected. But this is wrong because there will be a navigation and we could return too early - before the navigation has actually started. This can lead to race conditions for code running after this method call like the scenario as described on bug 1739540 comment 26.
As such we should wait at least for an unload
event before returning from WebDriver:Navigate
.
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Discussed with Henrik that actually the event which we should wait for is pagehide
Assignee | ||
Comment 2•3 years ago
|
||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•