Closed Bug 2082253 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63658 - [chromium-bidi] Fix network.getData with disown on intercepted requests

Categories

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

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Maksim Sadym <sadym@chromium.org> wrote:

[chromium-bidi] Fix network.getData with disown on intercepted requests

  • Keep in-flight and intercepted network requests alive when
    network.getData is called with disown: true (or when
    network.disownData is called).
  • Previously, disowning the last collector unconditionally deleted the
    request from NetworkStorage, causing subsequent
    network.provideResponse or network.continueRequest calls on a
    blocked request to fail with no such request.
  • Track request completion via NetworkRequest.isFinished and only
    evict uncollected requests once they have finished or failed loading.

Bug: 571267468
Cq-Include-Trybots: luci.chromium.try:linux-webdriver-bidi-rel
Include-Ci-Only-Tests: chromium.linux:Linux Tests|webdriver_wpt_tests
Change-Id: I504ef540dd6c6e2d636e4a7768237de2c885b7f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8575161
Auto-Submit: Maksim Sadym \<sadym@chromium.org>
Reviewed-by: Nikolay Vitkov \<nvitkov@chromium.org>
Commit-Queue: Nikolay Vitkov \<nvitkov@chromium.org>
Commit-Queue: Maksim Sadym \<sadym@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1718768}

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

CI Results

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

Total 11 tests and 3 subtests

Status Summary

Firefox

OK : 2[GitHub] 11[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 7[GitHub] 83[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 2

Chrome

OK : 2
PASS : 5
FAIL : 2

Safari

OK : 2
ERROR: 7

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.