mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-13 12:31:51 +00:00
LibWeb/HTML: Unregister ESO during finalize phase
It is generally safer for GC cells to do cleanup work during the finalize phase.
This commit is contained in:
parent
3c0b125c1c
commit
00002c6443
Notes:
github-actions[bot]
2025-06-18 11:09:44 +00:00
Author: https://github.com/shannonbooth
Commit: 00002c6443
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5129
Reviewed-by: https://github.com/gmta ✅
2 changed files with 3 additions and 2 deletions
|
@ -76,7 +76,7 @@ struct EnvironmentSettingsObject : public Environment {
|
|||
GC_CELL(EnvironmentSettingsObject, Environment);
|
||||
|
||||
public:
|
||||
virtual ~EnvironmentSettingsObject() override;
|
||||
virtual void finalize() override;
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-target-browsing-context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue