Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: be82aa543fa57b2b4b772a437cf39dad54bfff04
      
https://github.com/WebKit/WebKit/commit/be82aa543fa57b2b4b772a437cf39dad54bfff04
  Author: Youenn Fablet <[email protected]>
  Date:   2026-01-12 (Mon, 12 Jan 2026)

  Changed paths:
    M Source/WebCore/Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp
    M Source/WebCore/Modules/filesystem/FileSystemWritableFileStream.cpp
    M Source/WebCore/Modules/streams/ReadableByteStreamController.cpp
    M Source/WebCore/Modules/streams/ReadableStreamDefaultReader.cpp
    M Source/WebCore/Modules/streams/StreamPipeToUtilities.cpp
    M Source/WebCore/Modules/streams/StreamTeeUtilities.cpp
    M Source/WebCore/Modules/web-locks/WebLockManager.cpp
    M Source/WebCore/bindings/js/InternalReadableStreamDefaultReader.cpp
    M Source/WebCore/bindings/js/InternalWritableStreamWriter.cpp
    M Source/WebCore/bindings/js/JSDOMPromise.cpp
    M Source/WebCore/bindings/js/JSDOMPromise.h
    M Source/WebCore/bindings/js/JSDOMPromiseDeferred.cpp
    M Source/WebCore/bindings/js/JSDOMPromiseDeferred.h
    M Source/WebCore/dom/ViewTransition.cpp
    M Source/WebCore/page/Navigation.cpp
    M Source/WebCore/workers/service/ExtendableEvent.cpp

  Log Message:
  -----------
  DOMPromise::whenSettled should provide an easy way to get the promise result
rdar://167837259
https://bugs.webkit.org/show_bug.cgi?id=305191

Reviewed by Chris Dumez.

We introduce DOMPromise::whenSettledWithResult which provides as callback 
parameters the fulfillment decision and result.
This allows to remove the need to capture the DOMPromise object when calling 
DOMPromise::whenSettled which can create a ref cycle that gets broken only when 
context goes away.
We introduce AllPromise in StreamPipeToUtilities to remove the need to capture 
one promise from the other promise's callback.

Covered by existing tests.

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



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

Reply via email to