Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 87d203651d8a2fd077eebd5d18b7dc1492fa0f6b
https://github.com/WebKit/WebKit/commit/87d203651d8a2fd077eebd5d18b7dc1492fa0f6b
Author: Ryosuke Niwa <[email protected]>
Date: 2026-07-02 (Thu, 02 Jul 2026)
Changed paths:
A LayoutTests/streams/readable-stream-cancel-fake-promise-crash-expected.txt
A LayoutTests/streams/readable-stream-cancel-fake-promise-crash.html
M Source/WebCore/Modules/streams/ReadableStream.cpp
M Source/WebCore/Modules/streams/ReadableStreamDefaultReader.cpp
Log Message:
-----------
Type confusion in ReadableStream.cancel() via jsCast<JSPromise*>
https://bugs.webkit.org/show_bug.cgi?id=313706
rdar://174938744
Reviewed by Chris Dumez and Mark Lam.
Replaced the use of unconditional jsCast with jsDynamicCast to fix the bug.
Test: streams/readable-stream-cancel-fake-promise-crash.html
* LayoutTests/streams/readable-stream-cancel-fake-promise-crash-expected.txt:
Added.
* LayoutTests/streams/readable-stream-cancel-fake-promise-crash.html: Added.
* Source/WebCore/Modules/streams/ReadableStream.cpp:
(WebCore::ReadableStream::cancel):
* Source/WebCore/Modules/streams/ReadableStreamDefaultReader.cpp:
(WebCore::ReadableStreamDefaultReader::read):
Originally-landed-as: 305413.806@safari-7624-branch (3f06c62bc271).
rdar://180429254
Canonical link: https://commits.webkit.org/316449@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications