Bug 299682

Summary: Replace overload based resolution of the canvas inspector argument tracer with resolution using explicit IDLType specialization
Product: WebKit Reporter: Sam Weinig <sam>
Component: BindingsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: Unspecified   
OS: Unspecified   

Sam Weinig
Reported 2025-09-27 18:52:01 PDT
The overload based resolution for the of the canvas inspector argument tracing code driven by the big macro in InspectorCanvasCallTracer.h is pretty easy to break due to its use of overloading to differentiate argument types. The most common issue is accidentally making types get treated as `bool`. We can do better using templates!
Attachments
Sam Weinig
Comment 1 2025-09-27 19:22:50 PDT
EWS
Comment 2 2025-09-28 11:24:22 PDT
Committed 300666@main (37ee1bd3a1c7): <https://commits.webkit.org/300666@main> Reviewed commits have been landed. Closing PR #51458 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-09-28 11:25:12 PDT
Radar WebKit Bug Importer
Comment 4 2025-09-28 11:25:12 PDT
Note You need to log in before you can comment on or make changes to this bug.