Bug 305726

Summary: Add new IDL bindings extended attribute for dictionaries that still require using RefPtr for required interfaces
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   
Bug Depends on:    
Bug Blocks: 305410    

Sam Weinig
Reported 2026-01-18 08:56:28 PST
As a first step toward removing support for dictionaries using RefPtr for required interfaces, we should add a new IDL bindings extended attribute for all the dictionaries that still use it and attach that attribute to all the dictionaries. For any dictionary without the new attribute (and therefore using Ref<> for any required interfaces), we implement a new conversion implementation that does "one-shot" initialization. This will require that the native struct now also have the same order as the IDL dictionary.
Attachments
Sam Weinig
Comment 1 2026-01-18 09:21:43 PST
EWS
Comment 2 2026-01-18 18:40:06 PST
Committed 305790@main (2bb1d31a0fa7): <https://commits.webkit.org/305790@main> Reviewed commits have been landed. Closing PR #56790 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-01-18 18:41:13 PST
Note You need to log in before you can comment on or make changes to this bug.