1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:27:43 +00:00

LibWeb: Add special handling for WindowProxy in [Replaceable] setters

Setters for Window object should consider WindowProxy wrapper by:
- Verifying `this_value` is `WindowProxy` (not `HTML::Window`)
- Defining properties on the underlying Window object instead of on
  the WindowProxy itself.
This commit is contained in:
Aliaksandr Kalenik 2024-02-23 20:26:32 +01:00 committed by Andreas Kling
parent 9b1b8828b4
commit 1528e9109c
3 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,7 @@
<script src="include.js"></script>
<script>
test(() => {
window.event = "hello";
println(window.event);
});
</script>