Handle navigation which trigger beforeunload prompts for browsingContext.navigate
Categories
(Remote Protocol :: WebDriver BiDi, task, P2)
Tracking
(firefox131 fixed)
| Tracking | Status | |
|---|---|---|
| firefox131 | --- | fixed |
People
(Reporter: jdescottes, Assigned: Sasha)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m12][wptsync upstream][webdriver:relnote])
Attachments
(2 files)
Follow up to handle more specific navigation use cases.
We should support navigation which trigger a beforeunload prompt
Updated•3 years ago
|
Comment 1•3 years ago
|
||
For now this is blocked on the ability to handle user prompts. This feature will be added as part of bug 1768170.
Updated•2 years ago
|
Comment 2•1 year ago
|
||
Julian, do you remember which use cases you had in mind? We could at least check the disabled Puppeteer unit tests and try to get those running. AFAIR there are as well scenarios with history.pushState(), redirects, and most likely others.
| Reporter | ||
Comment 3•1 year ago
|
||
Sorry I don't really remember specific scenarios. I just remember we couldn't check beforeunload at all at that time because bidi did not support it.
I think at least checking that a navigation with a dismissed beforeunload prompt would be a good start. Ideally then also test what happens when the navigation is cancelled.
Regarding other scenarios, yes we can add history navigation and redirects.
| Assignee | ||
Comment 4•1 year ago
|
||
In the scope of this bug, we should cover two cases:
- if the navigate command was started with
waitargument equalnonewhenbeforeunloadprompt is open, we should return from thenavigatecommand; - if the
beforeunloadprompt was dismissed, we should fail navigate command withunknownerror.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 5•1 year ago
|
||
It looks like that implementation-wise, it's easier to keep this bug just about the case of returning from the navigation command when it is started with wait argument equal none and when beforeunload prompt is open and move the case of failing the command to bug 1905083.
| Assignee | ||
Comment 6•1 year ago
|
||
| Assignee | ||
Comment 7•1 year ago
|
||
Comment 10•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/619dddf77a31
https://hg.mozilla.org/mozilla-central/rev/d3ff8ea02d53
Updated•1 year ago
|
Description
•