Bug 269185

Summary: Add NativePromise::AutoRejectProducer object
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: Web Template FrameworkAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Jean-Yves Avenard [:jya]
Reported 2024-02-12 03:45:01 PST
An AutoRejectProducer automatically reject its NativePromise if not settled upon destruction. This will ease the use with ScriptExecutionContext::postTask(...) as the ScriptExecutionContext won't guarantee that the task be run (like if the Worker is destroyed first).
Attachments
Radar WebKit Bug Importer
Comment 1 2024-02-12 03:46:06 PST
Jean-Yves Avenard [:jya]
Comment 2 2024-02-12 05:49:15 PST
EWS
Comment 3 2024-02-13 02:56:40 PST
Committed 274535@main (1dff68a12c03): <https://commits.webkit.org/274535@main> Reviewed commits have been landed. Closing PR #24247 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.