1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00
serenity/Userland/Libraries/LibWeb/Bindings
Andrew Kaster c61a4f35dc LibWeb: Move Web prototypes and constructors to new Intrinsics object
This Intrinsics object hangs off of a new HostDefined struct that takes
the place of EnvironmentSettingsObject as the true [[HostDefined]] slot
on JS::Realm objects created by LibWeb.

This gets the intrinsics off of the GlobalObject, Window, similar to the
previous refactor of LibJS to move the intrinsics into the Realm's
[[Intrinics]] internal slot.

A side effect of this change is that we cannot fully initialize a Window
object until the [[HostDefined]] slot has been installed into the realm,
which happens with the creation of the WindowEnvironmentSettingsObject.

As such, any Window usage that has not been funned through a WindowESO
will not have any cached Web prototyped or constructors, and will not
have Window APIs available to javascript code. Currently this seems
limited to usage of Window in the CSS parser, but a subsequent commit
will clean those up to take Realm as well. However, this commit compiles
so let's cut it off here :^).
2022-10-01 21:05:32 +01:00
..
AudioConstructor.cpp LibWeb: Remove no-op impl() methods from the WEB_PLATFORM_OBJECT macro 2022-09-21 21:12:24 +01:00
AudioConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
CSSNamespace.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
CSSNamespace.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
ExceptionOrUtils.h LibWeb: Support plain (throw) JS::Completion in WebIDL::ExceptionOr 2022-09-27 14:56:17 +01:00
HostDefined.cpp LibWeb: Move Web prototypes and constructors to new Intrinsics object 2022-10-01 21:05:32 +01:00
HostDefined.h LibWeb: Move Web prototypes and constructors to new Intrinsics object 2022-10-01 21:05:32 +01:00
ImageConstructor.cpp LibWeb: Use cached_web_prototype() as much as possible 2022-09-06 00:27:09 +02:00
ImageConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
Intrinsics.cpp LibWeb: Move Web prototypes and constructors to new Intrinsics object 2022-10-01 21:05:32 +01:00
Intrinsics.h LibWeb: Move Web prototypes and constructors to new Intrinsics object 2022-10-01 21:05:32 +01:00
LegacyPlatformObject.cpp LibWeb: Add Bindings::LegacyPlatformObject base class 2022-09-06 00:27:09 +02:00
LegacyPlatformObject.h LibWeb+LibJS: Make the EventTarget hierarchy (incl. DOM) GC-allocated 2022-09-06 00:27:09 +02:00
LocationConstructor.cpp LibWeb: Use cached_web_prototype() as much as possible 2022-09-06 00:27:09 +02:00
LocationConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
LocationObject.cpp AK+Everywhere: Replace "protocol" with "scheme" url helpers 2022-09-29 09:39:04 +01:00
LocationObject.h LibWeb: Move cross-origin AOs from Bindings/ to HTML/CrossOrigin/ 2022-09-24 19:31:39 +01:00
LocationPrototype.h LibWeb+LibJS: Make the EventTarget hierarchy (incl. DOM) GC-allocated 2022-09-06 00:27:09 +02:00
MainThreadVM.cpp LibWeb: Move Web prototypes and constructors to new Intrinsics object 2022-10-01 21:05:32 +01:00
MainThreadVM.h LibJS+LibWeb: Spin event loop via VM::CustomData abstraction 2022-09-08 00:13:39 +02:00
NavigatorConstructor.cpp LibWeb: Use cached_web_prototype() as much as possible 2022-09-06 00:27:09 +02:00
NavigatorConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
NavigatorObject.cpp LibWeb: Use cached_web_prototype() as much as possible 2022-09-06 00:27:09 +02:00
NavigatorObject.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
NavigatorPrototype.h LibWeb+LibJS: Make the EventTarget hierarchy (incl. DOM) GC-allocated 2022-09-06 00:27:09 +02:00
OptionConstructor.cpp LibWeb: Use cached_web_prototype() as much as possible 2022-09-06 00:27:09 +02:00
OptionConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
PlatformObject.cpp LibWeb+LibJS: Make the EventTarget hierarchy (incl. DOM) GC-allocated 2022-09-06 00:27:09 +02:00
PlatformObject.h LibWeb: Remove WRAPPER_HACK() macro 2022-09-21 21:12:24 +01:00
Replaceable.h LibJS: Remove GlobalObject from VM::this_value() 2022-08-23 13:58:30 +01:00
WindowConstructor.cpp LibWeb: Use cached_web_prototype() as much as possible 2022-09-06 00:27:09 +02:00
WindowConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
WindowObjectHelper.h LibWeb: Move Web prototypes and constructors to new Intrinsics object 2022-10-01 21:05:32 +01:00
WindowPrototype.h LibWeb: Use cached_web_prototype() as much as possible 2022-09-06 00:27:09 +02:00