WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
300183
[Bindings] Generated `toJSNewlyCreated()` should account for descendants
https://bugs.webkit.org/show_bug.cgi?id=300183
Summary
[Bindings] Generated `toJSNewlyCreated()` should account for descendants
Chris Dumez
Reported
2025-10-04 19:18:45 PDT
Currently, the binding can only generate a trivial version of `toJSNewlyCreated()`, which does not account for descendants. This is annoying for developers as they usually find the hard way and then they have to write custom bindings code to create the right wrapper for the right subclass type. This patch updates the bindings generator to generate a more correct version of `toJSNewlyCreated()` when an interface has descendants and drops the custom bindings for Text.idl as proof of concept. I will then follow-up to drop more custom bindings.
Attachments
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2025-10-04 19:49:54 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/51823
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug