Bug 262746

Summary: Should have the ability to chain a DOMPromise to a NativePromise
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: DOMAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Jean-Yves Avenard [:jya] 2023-10-05 16:40:48 PDT
It would be advantageous to be able to chain a NativePromise to a DOMPromise such that when the NativePromise is resolved it will automatically resolve the DOMPromise.

One advantage other than the simplification of common use-case would be that you wouldn't need to pass the DOMPromise around like we often do, and remove the need to always include DOMPromise.h . which pull JavaScriptCore/JSPromise.h and takes forever to build.
Comment 1 Radar WebKit Bug Importer 2023-10-05 16:41:13 PDT
<rdar://problem/116549749>