Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7e5a8741600288474220c8c3bd72564aeea80486
      
https://github.com/WebKit/WebKit/commit/7e5a8741600288474220c8c3bd72564aeea80486
  Author: Fujii Hironori <[email protected]>
  Date:   2026-04-29 (Wed, 29 Apr 2026)

  Changed paths:
    A LayoutTests/http/tests/fetch/clone-in-detached-frame-expected.txt
    A LayoutTests/http/tests/fetch/clone-in-detached-frame.html
    M Source/WebCore/Modules/streams/ReadableByteStreamController.cpp

  Log Message:
  -----------
  ASSERTION FAILED: !isSuspended() in WebCore::DOMPromise::promise() in 
ReadableByteStreamController::handleSourcePromise()
https://bugs.webkit.org/show_bug.cgi?id=313526

Reviewed by Youenn Fablet.

308984@main replaced algorithmPromise.whenSettledWithResult() with
DOMPromise::whenPromiseIsSettled(.., algorithmPromise.promise(), ...) in
ReadableByteStreamController::handleSourcePromise(). whenSettledWithResult()
returns early if isSuspended(), but algorithmPromise.promise() asserts
!isSuspended().

Check isSuspended() and retrun early before algorithmPromise.promise() in
ReadableByteStreamController::handleSourcePromise().

Tests: LayoutTests/http/tests/fetch/clone-in-detached-frame.html

* LayoutTests/http/tests/fetch/clone-in-detached-frame-expected.txt: Added.
* LayoutTests/http/tests/fetch/clone-in-detached-frame.html: Added.
* Source/WebCore/Modules/streams/ReadableByteStreamController.cpp:
(WebCore::ReadableByteStreamController::handleSourcePromise):

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



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

Reply via email to