1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:18:12 +00:00

LibWeb: Remove unnecessary hack in HTML::Window::initialize()

We don't need to force-set the realm's global object during
initialization anymore, now that intrinsics are set up elsewhere.
This commit is contained in:
Andreas Kling 2022-10-20 15:31:12 +02:00
parent dc15cacfc3
commit 8fd59fce9c
2 changed files with 0 additions and 9 deletions

View file

@ -697,14 +697,6 @@ HTML::BrowsingContext* Window::browsing_context()
return m_associated_document->browsing_context();
}
void Window::initialize(JS::Realm& realm)
{
Base::initialize(realm);
// FIXME: This is a hack..
realm.set_global_object(this, this);
}
void Window::initialize_web_interfaces(Badge<WindowEnvironmentSettingsObject>)
{
auto& realm = this->realm();