Bug 261008

Summary: SerialFunctionDispatcher should implement isCurrent()
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: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Jean-Yves Avenard [:jya] 2023-08-31 19:10:10 PDT
SerialFunctionDispatcher already implements assertIsCurrent() in debug mode.

RunLoop, a SerialFunctionDispatcher already implement isCurrent().

We should expand isCurrent() to be available on all SerialFunctionDispatcher, the change is trivial considering all versions already implement assertIsCurrent() which contains all the required logic to do so.

This will also be required for the new C++ Promise's directFunctionDispatch mode (bug pending)
Comment 1 Radar WebKit Bug Importer 2023-08-31 19:10:34 PDT
<rdar://problem/114801460>
Comment 2 Jean-Yves Avenard [:jya] 2023-09-01 05:11:59 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17342
Comment 3 EWS 2023-09-08 13:03:12 PDT
Committed 267808@main (cce771ba5390): <https://commits.webkit.org/267808@main>

Reviewed commits have been landed. Closing PR #17342 and removing active labels.