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:
parent
dc15cacfc3
commit
8fd59fce9c
2 changed files with 0 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue