mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:35:07 +00: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:
parent
3deb8e322f
commit
6e93d89ee3
4 changed files with 15 additions and 37 deletions
|
@ -1061,7 +1061,7 @@ HTML::BrowsingContext* Window::browsing_context()
|
|||
void Window::initialize_web_interfaces(Badge<WindowEnvironmentSettingsObject>)
|
||||
{
|
||||
auto& realm = this->realm();
|
||||
add_window_exposed_interfaces(*this, realm);
|
||||
add_window_exposed_interfaces(*this);
|
||||
|
||||
Object::set_prototype(&Bindings::ensure_web_prototype<Bindings::WindowPrototype>(realm, "Window"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue