Closed Bug 1905083 Opened 3 months ago Closed 2 months ago

"browsingContext.navigate" has to return "unknown error" if navigation failed

Categories

(Remote Protocol :: WebDriver BiDi, defect, P2)

defect
Points:
3

Tracking

(firefox131 fixed)

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: whimboo, Assigned: Sasha)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:m12][wptsync upstream][webdriver:relnote])

Attachments

(3 files)

Step 7 of await a navigation describes that a navigation needs to fail with unknown error if the navigation status is canceled - like it can happen when dismissing a beforeunload prompt.

Before we can get started to work on this bug we need the browsingContext.navigationFailed event first (bug 1846601).

Bug 1846601 is being implemented at the moment, would be nice to handle this one as a follow up if we have time during m12.

Priority: -- → P2
Whiteboard: [webdriver:backlog]
Severity: -- → S3
Points: --- → 3
See Also: → 1908515
Whiteboard: [webdriver:backlog] → [webdriver:triage]
Whiteboard: [webdriver:triage] → [webdriver:m12]

It would be good in the scope of this bug to also take a look if it's possible or how hard it's to implement the logic to return a more meaningful error message in case the navigation fails because of the error returned from the platform. Maybe we could reuse some devtools code or create some shared logic.

No longer blocks: 1905641
Blocks: 1905641
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Blocks: 1912400

(In reply to Alexandra Borovova [:Sasha] from comment #2)

It would be good in the scope of this bug to also take a look if it's possible or how hard it's to implement the logic to return a more meaningful error message in case the navigation fails because of the error returned from the platform. Maybe we could reuse some devtools code or create some shared logic.

This part is moved to follow-up (bug 1912400).

Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/57b35acde62f [bidi] Fail "browsingContext.navigate" command when the "navigation-failed" event received. r=webdriver-reviewers,jdescottes https://hg.mozilla.org/integration/autoland/rev/cc92c2f19204 [wdspec] Add tests for error cases of "browsingContext.navigate" command. r=webdriver-reviewers,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/47540 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m12] → [webdriver:m12], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
Regressions: 1912554
Upstream PR was closed without merging
Flags: needinfo?(aborovova)
Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3322352a66d6 [bidi] Fail "browsingContext.navigate" command when the "navigation-failed" event received. r=webdriver-reviewers,jdescottes https://hg.mozilla.org/integration/autoland/rev/e7b46e8452ee [wdspec] Add tests for error cases of "browsingContext.navigate" command. r=webdriver-reviewers,jdescottes https://hg.mozilla.org/integration/autoland/rev/d6419e91d310 Add LSAN failure to allow list. r=webdriver-reviewers,whimboo
Status: REOPENED → RESOLVED
Closed: 2 months ago2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
Upstream PR merged by moz-wptsync-bot
Whiteboard: [webdriver:m12], [wptsync upstream] → [webdriver:m12][wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: