1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-18 14:31:00 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators
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
..
GMLCompiler Everywhere: Prefer _string when constructing strings from literals 2024-02-08 11:01:10 -05:00
IPCCompiler LibWebView+WebContent: Do not manually serialize cookie sources over IPC 2024-01-26 20:22:39 +01:00
JSSpecCompiler JSSpecCompiler: Ignore notes in algorithm steps 2024-02-24 15:03:08 -07:00
LibEDID Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
LibGL LibGL: Allow function name override in API definitions 2024-02-14 15:09:53 +01:00
LibLocale Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
LibTimeZone Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
LibUnicode Everywhere: Prefer {:#x} over 0x{:x} in format strings 2024-02-21 17:54:38 +01:00
LibWeb LibWeb: Handle scenario when Window property setter is called on global 2024-02-25 12:55:30 +01:00
LibWebView LibWebView: Do not treat prefix of public suffix as valid public suffix 2023-12-12 06:44:54 -05:00
StateMachineGenerator AK: Remove ByteString from GenericLexer 2024-01-12 17:03:53 -07:00
CMakeLists.txt LibWebView+LibPublicSuffix: Merge LibPublicSuffix into LibWebView 2023-10-16 09:06:02 -04:00