diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-01 12:14:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-06 00:27:09 +0200 |
commit | c569c88e6357ee447bfab316ef35744f064e4efe (patch) | |
tree | bde581c4e6ee7428b40b089cdcc80214b16a3132 /Userland/Libraries/LibWeb/HTML/Scripting/WindowEnvironmentSettingsObject.h | |
parent | 5f4d4ffe393f88619fdb8c00c656ba2f1034899a (diff) | |
download | serenity-c569c88e6357ee447bfab316ef35744f064e4efe.zip |
LibWeb: Don't have Handle<Realm> in WindowEnvironmentSettingsObject
This was preventing window realms from ever being garbage collected.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Scripting/WindowEnvironmentSettingsObject.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Scripting/WindowEnvironmentSettingsObject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/WindowEnvironmentSettingsObject.h b/Userland/Libraries/LibWeb/HTML/Scripting/WindowEnvironmentSettingsObject.h index d14300b84c..d513ff3efd 100644 --- a/Userland/Libraries/LibWeb/HTML/Scripting/WindowEnvironmentSettingsObject.h +++ b/Userland/Libraries/LibWeb/HTML/Scripting/WindowEnvironmentSettingsObject.h @@ -26,7 +26,7 @@ public: private: WindowEnvironmentSettingsObject(Window&, NonnullOwnPtr<JS::ExecutionContext>); - JS::Handle<Window> m_window; + WeakPtr<Window> m_window; }; } |