mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +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();
|
||||
|
|
|
@ -127,7 +127,6 @@ public:
|
|||
|
||||
private:
|
||||
explicit Window(JS::Realm&);
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue