mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
59162c8155
commit
76397c9ecd
@@ -581,7 +581,7 @@ Messages::WebDriverClient::SwitchToWindowResponse WebDriverConnection::switch_to
|
||||
// Otherwise, return error with error code no such window.
|
||||
bool found_matching_context = false;
|
||||
|
||||
for (auto* navigable : Web::HTML::all_navigables()) {
|
||||
for (auto navigable : Web::HTML::all_navigables()) {
|
||||
auto traversable = navigable->top_level_traversable();
|
||||
if (!traversable || !traversable->active_browsing_context())
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user