mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Generate exposed Window/Worker interfaces as lazy objects
We now lazily create these instances on-demand rather than all at once when a Window/Worker object is created.
This commit is contained in:
committed by
Andreas Kling
parent
3deb8e322f
commit
6e93d89ee3
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/6e93d89ee3 Pull-request: https://github.com/SerenityOS/serenity/pull/16945 Reviewed-by: https://github.com/alimpfard
@@ -35,7 +35,7 @@ public:
|
||||
realm->set_host_defined(move(host_defined));
|
||||
|
||||
// FIXME: Shared workers should use the shared worker method
|
||||
Bindings::add_dedicated_worker_exposed_interfaces(realm->global_object(), *realm);
|
||||
Bindings::add_dedicated_worker_exposed_interfaces(realm->global_object());
|
||||
|
||||
return settings_object;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user