Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f7319b018f79494c9680dde36e251049e3683daa
https://github.com/WebKit/WebKit/commit/f7319b018f79494c9680dde36e251049e3683daa
Author: Youenn Fablet <[email protected]>
Date: 2025-12-02 (Tue, 02 Dec 2025)
Changed paths:
A LayoutTests/http/wpt/streams/readablestream-cancel-exception-expected.txt
A LayoutTests/http/wpt/streams/readablestream-cancel-exception.html
M Source/WebCore/Modules/streams/ReadableStream.cpp
M Source/WebCore/Modules/streams/StreamPipeToUtilities.cpp
M Source/WebCore/bindings/js/InternalReadableStream.h
Log Message:
-----------
ReadableStream::cancel is not handling the case of an empty JSValue
rdar://165347557
https://bugs.webkit.org/show_bug.cgi?id=303378
Reviewed by Chris Dumez.
InternalReadableStream::cancel s returning an empty value in case of exception,
which cannot be jsCast.
We add null checks to prevent jsCasting empty values.
As a fly-by fix, we also remove some method declarations that are no longer
needed after the pipeTo JS built-in implementation removal.
Covered by added test.
Canonical link: https://commits.webkit.org/303789@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications