Closed Bug 2079721 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63378 - [Streams] Fix detach DCHECK in `WritableStream::Abort()`

Categories

(Core :: DOM: Streams, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Thomas Guilbert <tguilbert@chromium.org> wrote:

[Streams] Fix detach DCHECK in WritableStream::Abort()

WritableStream::Abort() doesn't call SuppressDetachCheck() on its
resolver. This hits a DCHECK when a stream with a pending abort is
garbage collected, e.g. if an in-flight write never settles.

This CL suppresses the check, like https://crrev.com/c/6517151 did for
Close(), and adds a crashtest.

This was causing flaky crashes in unrelated WPTs that ran later in the
same shard as aborting.any.serviceworker.html, such as
preserves-pitch.html.

Bug: 390646657
Change-Id: I8338d1d16550614162d71e8d01416f6d96b45987
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8508886
Reviewed-by: Adam Rice \<ricea@chromium.org>
Auto-Submit: Thomas Guilbert \<tguilbert@chromium.org>
Commit-Queue: Thomas Guilbert \<tguilbert@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1713978}

Component: web-platform-tests → DOM: Streams
Product: Testing → Core

CI Results

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

Total 4 tests and 6 subtests

Status Summary

Firefox

OK : 4
PASS: 24

Chrome

OK : 4
PASS: 24

Safari

OK : 4
PASS: 24

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/13e89feccd58 https://hg.mozilla.org/integration/autoland/rev/485c5dc6317c [wpt PR 63378] - [Streams] Fix detach DCHECK in `WritableStream::Abort()`, 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.