mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
LibWeb: Use finalize for cleaning up all navigables
The use of this HashMap looks very spooky, but let's at least use finalize when cleaning them up on destruction to make things slightly less dangerous looking.
This commit is contained in:
parent
59162c8155
commit
76397c9ecd
Notes:
github-actions[bot]
2025-01-17 09:11:51 +00:00
Author: https://github.com/shannonbooth
Commit: 76397c9ecd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3284
7 changed files with 17 additions and 13 deletions
|
@ -46,7 +46,7 @@ JsonObject window_proxy_reference_object(HTML::WindowProxy const& window)
|
|||
|
||||
static GC::Ptr<HTML::Navigable> find_navigable_with_handle(StringView handle, bool should_be_top_level)
|
||||
{
|
||||
for (auto* navigable : Web::HTML::all_navigables()) {
|
||||
for (auto navigable : Web::HTML::all_navigables()) {
|
||||
if (navigable->is_top_level_traversable() != should_be_top_level)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue