ladybird/Meta/Lagom/Tools/CodeGenerators/LibWeb
sin-ack d5948709cd BindingsGenerator: Handle global interfaces without named properties
DedicatedWorkerGlobalScope is an object with a Global extended
attribute, but does not define any named property getters. This needs to
be handled by setting the prototype chain to:

    DedicatedWorkerGlobalScope
    ^ DedicatedWorkerGlobalScopePrototype
    ^ WorkerGlobalScopePrototype

(This is different from something like Window, where there is an
intermediate WindowProperties object for named properties.)

Previously, we treated the GlobalMixin object as if it was a simple
prototype object, accidentally setting DedicatedWorkerGlobalScope's
prototype to WorkerGlobalScopePrototype. This caused the expression

    self instanceof DedicatedWorkerGlobalScope

to return false inside workers.

This makes us pass many more of the "/xhr/idlharness.any.worker" WPT
tests than before, rather than failing early.
2024-10-12 19:21:59 +02:00
..
BindingsGenerator BindingsGenerator: Handle global interfaces without named properties 2024-10-12 19:21:59 +02:00
CMakeLists.txt LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
GenerateAriaRoles.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
GenerateCSSEnums.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
GenerateCSSKeyword.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
GenerateCSSMathFunctions.cpp LibWeb/CSS: Bring TokenStream in line with spec 2024-10-09 17:29:29 +01:00
GenerateCSSMediaFeatureID.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
GenerateCSSPropertyID.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
GenerateCSSPseudoClass.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
GenerateCSSTransformFunctions.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
GenerateWindowOrWorkerInterfaces.cpp LibWeb: Create separate DedicatedWorkerGlobalScope class 2024-07-10 07:04:53 +02:00
GeneratorUtil.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00