Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 96ec73a1e57d67618055237272f866849103669c
      
https://github.com/WebKit/WebKit/commit/96ec73a1e57d67618055237272f866849103669c
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-06-05 (Fri, 05 Jun 2026)

  Changed paths:
    A LayoutTests/streams/readable-stream-fake-promise-crash-expected.txt
    A LayoutTests/streams/readable-stream-fake-promise-crash.html
    M Source/WebCore/Modules/streams/StreamPipeToUtilities.cpp

  Log Message:
  -----------
  Type confusion in ReadableStream when cancel returns a fake Promise object
https://bugs.webkit.org/show_bug.cgi?id=312357
rdar://174652787

Reviewed by Chris Dumez.

Use jsDynamicCast in place of jsCast to avoid type confusion.

Test: streams/readable-stream-fake-promise-crash.html

* LayoutTests/streams/readable-stream-fake-promise-crash-expected.txt: Added.
* LayoutTests/streams/readable-stream-fake-promise-crash.html: Added.
* Source/WebCore/Modules/streams/StreamPipeToUtilities.cpp:
(WebCore::cancelReadableStream):
(WebCore::StreamPipeToState::globalObject):
(WebCore::StreamPipeToState::errorsMustBePropagatedForward):
(WebCore::StreamPipeToState::closingMustBePropagatedBackward):

Originally-landed-as: 305413.674@safari-7624-branch (86716cafbc99). 
rdar://176058606
Canonical link: https://commits.webkit.org/314690@main



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

Reply via email to