Closed Bug 1937661 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 49718 - [wdspec] fix `browsingContext.navigationFailed` test

Categories

(Remote Protocol :: WebDriver BiDi, task, P4)

task

Tracking

(firefox136 fixed)

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 49718 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/49718
Details from upstream follow.

Maksim Sadym <sadym@chromium.org> wrote:

[wdspec] fix browsingContext.navigationFailed test

Align webdriver/tests/bidi/browsing_context/navigation_failed/navigation_failed.py:test_with_new_navigation_inside_page and test_with_new_navigation with the spec. Currently, the test are not fully aligned with the spec, as the specific event depends on the document creation step, which in order depends on the fetch status.

When WPT trickles response, it sends headers and adds timeouts before sending the body. However, this does not guarantee the new document will not be created and activated:

E.g. in case of Chromium, the document is created after the headers are received. This makes the discrepancy in the events have to be emitted. If the new document is created, it should be the "browsingContext.navigationAborted" event. If not, it should be "browsingContext.navigationFailed".

Component: web-platform-tests → WebDriver BiDi
Product: Testing → Remote Protocol

CI Results

Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 12 subtests

Status Summary

Firefox

OK : 1
PASS : 6
FAIL : 5[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-isolated-process-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview] 6[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt, GitHub]

Chrome

TIMEOUT: 1

Safari

OK : 1
ERROR : 12

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cf52eb2a662a [wpt PR 49718] - [wdspec] fix `browsingContext.navigationFailed` test, a=testonly https://hg.mozilla.org/integration/autoland/rev/875b10b46bf5 [wpt PR 49718] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.