Open Bug 1765811 Opened 3 years ago Updated 3 years ago

WPT failure: a rejection from underlyingSink.abort() should be preferred to one from underlyingSource.cancel()

Categories

(Core :: DOM: Streams, defect, P3)

defect

Tracking

()

ASSIGNED

People

(Reporter: saschanaz, Assigned: saschanaz)

References

(Blocks 1 open bug, )

Details

Bug 1734241 didn't fix it for some reason.

Per https://searchfox.org/mozilla-central/rev/6f6cf2810742d32454251afdb8e632c27999bea7/dom/streams/ReadableStreamPipeTo.cpp#240 it seems to mock Promise.all but then it doesn't seem to actually look at the order of promises. I'll try writing a test for that specific function if not already exist.

Okay, it's not Promise.all. cancel() is indeed being called first. (ReadableStreamCancel calls cancel() synchronously but WritableStreamAbort calls abort() asynchronously)

Assignee: nobody → krosylight
Status: NEW → ASSIGNED

The abort steps seemingly should not call the cancel callback synchronously? 🤔

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.