Closed Bug 1822675 Opened 3 years ago Closed 3 years ago

Enqueuing on piped ReadableStream causes synchronous write, while not in Blink/WebKit

Categories

(Core :: DOM: Streams, defect)

defect

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

()

Details

Attachments

(2 files)

var con;
new ReadableStream({ start(c) { con = c }}, { highWaterMark: 0 }).pipeTo(
  new WritableStream({ write(chunk, c) { console.log(chunk, 'write') } })
)
await Promise.resolve();
con.enqueue('hi');
console.log('hello');

This emits "hello" first on WebKit/Blink but emits "hi write" first on Gecko.

Severity: -- → S3
Assignee: nobody → krosylight
Status: NEW → ASSIGNED
Attachment #9323497 - Attachment description: Bug 1822675 - Call write asynchronously from PipeToPump r=smaug → Bug 1822675 - Part 1: Call write asynchronously from PipeToPump r=smaug
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8b5413c6adaf Part 1: Call write asynchronously from PipeToPump r=smaug https://hg.mozilla.org/integration/autoland/rev/f280bc1b1080 Part 2: Do not reject with uncatchable exception r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/39103 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: