Commit Graph

10 Commits

Author SHA1 Message Date
Shannon Booth
7f4600f0e9 LibWeb: Apply newTarget prototype in legacy factory constructors
Use WebIDL::set_prototype_from_new_target() in the handwritten Audio,
Image, and Option legacy factory constructors so subclassed
construction uses the correct prototype.

This corresponds to step 1.6 of:

https://webidl.spec.whatwg.org/#legacy-factory-functions
2026-04-05 02:09:39 +02:00
Shannon Booth
379461e047 LibWeb: Make global prototype chains immutable
Per https://webidl.spec.whatwg.org/#interface-prototype-object any
global platform object should reject prototype changes (besides
from ShadowRealmGlobalScope), and interface prototype objects on
global prototype chains must be immutable.

We already handled parts of this on the globals themselves, but not
the full chain.

Also align some spec comments to the latest WebIDL spec.
2026-04-03 18:33:45 +02:00
Jelle Raaijmakers
ae0557a2cb Tests/LibWeb: Import WPT window named properties test
This used to crash before; let's lock this in place.
2026-03-15 09:03:20 -04:00
Shannon Booth
a5d8e849c0 Tests/LibWeb: Import WPT test for IDL callback interfaces 2026-03-11 21:16:44 +01:00
Shannon Booth
39976bb4b8 LibWeb/Bindings: Use DefineDataPropertyOrThrow in Replaceable setter 2026-02-07 11:49:36 +01:00
Shannon Booth
42c3199815 Tests/LibWeb: Import [PutForwards] WPT test 2026-02-06 19:23:30 +01:00
Shannon Booth
02e5e419d9 Tests/LibWeb: Import WPT test for IDL handling of attribute setters 2026-02-06 19:23:30 +01:00
Shannon Booth
dcc7fe3663 LibWeb/Tests: Import WPT test global-object-implicit-this-value 2025-04-22 12:17:14 +02:00
Tim Ledbetter
b6ec055bf9 IDLGenerators: Set Iterator @@toStringTag with correct descriptor 2025-01-11 10:02:48 -05:00
Shannon Booth
627b7dd936 LibWeb/Bindings: Define constructor properties in the correct order 2025-01-11 01:43:31 +00:00