Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 43f9966cb6feadbbc2182a4d55ffd7b7129a14f7
      
https://github.com/WebKit/WebKit/commit/43f9966cb6feadbbc2182a4d55ffd7b7129a14f7
  Author: Youenn Fablet <[email protected]>
  Date:   2026-02-05 (Thu, 05 Feb 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/readable-stream-expected.txt
    M Source/WebCore/bindings/js/InternalWritableStreamWriter.cpp
    M Source/WebCore/bindings/js/InternalWritableStreamWriter.h

  Log Message:
  -----------
  Fix failing WPT streams/transferable/readable-stream.html subtests
rdar://169533462
https://bugs.webkit.org/show_bug.cgi?id=306873

Reviewed by Chris Dumez.

We were waiting on writer ready promise to start reading when doing piping.
While this is ok, the spec says we just have to wait for writer desired size to 
be greater than 0.
This difference of behavior is visible in one of the WPT 
streams/transferable/readable-stream.html test.
We align with other browsers by checking desired size explicitely and if so we 
read directly.
Otherwise, we wait for writer ready promise.

This impacts the WPT subtests as the race between reading and starting the 
readable stream can either cause to pull once (if read happens before starting 
is finished) or twice (if starting happens before the read).

Covered by rebased test.

Canonical link: https://commits.webkit.org/306911@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to