Closed Bug 2077221 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63167 - [wdspec] Fix worker subtests in script.realmDestroyed WPT

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

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Maksim Sadym <sadym@chromium.org> wrote:

[wdspec] Fix worker subtests in script.realmDestroyed WPT

  • Fix the dedicated and shared worker subtests in the
    script.realmDestroyed WPT suite and prevent duplicate
    script.realmDestroyed events when worker targets crash or close.
  • Previously, the dedicated worker subtests terminated workers via a
    100ms timer that raced with CDP worker target initialization, while
    the shared worker subtest navigated away and left the worker frozen
    in BFCache; additionally, CdpTargetManager disposed crashed worker
    realms without removing them from storage, causing a duplicate
    script.realmDestroyed event on target detach.
  • Wait for script.realmCreated before terminating dedicated workers,
    close the tab in test_shared_worker to bypass BFCache, and call
    deleteRealms in CdpTargetManager.#handleTargetCrashedEvent.

Bug: 411416746, 324436866
Cq-Include-Trybots: luci.chromium.try:linux-webdriver-bidi-rel
Include-Ci-Only-Tests: chromium.linux:Linux Tests|webdriver_wpt_tests
Change-Id: I36c8f7f1086adc137ebb2c7e2a85995143f08a1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8497210
Reviewed-by: Alex Rudenko \<alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko \<alexrudenko@chromium.org>
Auto-Submit: Maksim Sadym \<sadym@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1708855}

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

Try push failed to land: Lando job 99315 for the try push is FAILED:
Unexpected error while pushing to try.
hg error in cmd: hg push -r tip ssh://hg.mozilla.org/try -f: pushing to ssh://hg.mozilla.org/try

remote: Connection closed by 63.245.208.203 port 22
abort: no suitable response from remote hg

CI Results

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

Total 1 tests and 16 subtests

Status Summary

Firefox

OK : 1
PASS : 15[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] 16[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, GitHub]

Chrome

OK : 1
PASS : 15
FAIL : 1

Safari

OK : 1
ERROR: 16

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/026fef64afb1 https://hg.mozilla.org/integration/autoland/rev/745a1b82a8ae [wpt PR 63167] - [wdspec] Fix worker subtests in script.realmDestroyed WPT, a=testonly
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.