1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 15:55:07 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibWeb
Aliaksandr Kalenik 8a829be25c LibWeb: Handle scenario when Window property setter is called on global
This commit fixes a regression introduced in
1528e9109c.

Turns out that the type of `this_value` in the property setter of the
Window object depends on how the variable is accessed. If the property
is accessed as a global variable, then this_value is of type `Window`.
For example:
```js
performance = null
```

However, when it is accessed as a property of the window object,
`this_value` is of type `WindowProxy`. For example:
```js
window.performance = null
```

This commit updates the window property setters generator to handle
both scenarios.

With this change https://discord.com/login works again.
2024-02-25 12:55:30 +01:00
..
BindingsGenerator LibWeb: Handle scenario when Window property setter is called on global 2024-02-25 12:55:30 +01:00
CMakeLists.txt LibWeb: Generate PseudoClass metadata 2023-08-12 16:26:32 +02:00
GenerateAriaRoles.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
GenerateCSSEasingFunctions.cpp AK: Remove ByteString from GenericLexer 2024-01-12 17:03:53 -07:00
GenerateCSSEnums.cpp Everywhere: Add deprecated_ prefix to JsonValue::to_byte_string 2024-01-12 17:41:34 -07:00
GenerateCSSMathFunctions.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
GenerateCSSMediaFeatureID.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
GenerateCSSPropertyID.cpp LibWeb: Add a way to test if a CSS::PropertyID is animatable 2024-02-13 19:44:44 +01:00
GenerateCSSPseudoClass.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
GenerateCSSTransformFunctions.cpp Everywhere: Add deprecated_ prefix to JsonValue::to_byte_string 2024-01-12 17:41:34 -07:00
GenerateCSSValueID.cpp Everywhere: Add deprecated_ prefix to JsonValue::to_byte_string 2024-01-12 17:41:34 -07:00
GenerateWindowOrWorkerInterfaces.cpp AK: Remove ByteString from GenericLexer 2024-01-12 17:03:53 -07:00
GeneratorUtil.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30