servo/components/script_bindings/codegen
Josh Matthews 30390f8c5e
Fix crash when enumerating properties of global object (#36491)
These changes make our implementation of the enumeration hook for
globals [match
Gecko's](https://searchfox.org/mozilla-central/rev/1f65969e57c757146e3e548614b49d3a4168eeb8/dom/base/nsGlobalWindowInner.cpp#3297),
fixing an assertion failure that occurred in the previous
implementation.

Our enumeration hook is supposed to fill a vector with names of
properties on the global object without modifying the global in any way;
instead we were defining all of the missing webidl interfaces. We now do
much less work and crash less.

Testing: New crashtest based on manual testcase.
Fixes: #34686

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-04-17 03:32:53 +00:00
..
api.html.template script: Move code generation and webidl files to new script_bindings crate. (#35157) 2025-01-24 20:47:43 +00:00
apis.html.template script: Move code generation and webidl files to new script_bindings crate. (#35157) 2025-01-24 20:47:43 +00:00
Bindings.conf async clipboard: implement writeText (#36498) 2025-04-14 13:49:43 +00:00
CodegenRust.py Fix crash when enumerating properties of global object (#36491) 2025-04-17 03:32:53 +00:00
Configuration.py Support static and instance members having the same name in IDLs (#36523) 2025-04-16 21:00:52 +00:00
interface.html.template script: Move code generation and webidl files to new script_bindings crate. (#35157) 2025-01-24 20:47:43 +00:00
property.html.template script: Move code generation and webidl files to new script_bindings crate. (#35157) 2025-01-24 20:47:43 +00:00
run.py Remove legacy layout (layout 2013) (#35943) 2025-03-13 07:26:57 +00:00