mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Mark a BC's navigable as destroyed if it does not exist
This commit is contained in:
parent
5aa50bff8b
commit
84df1bf585
|
|
@ -507,7 +507,7 @@ SandboxingFlagSet determine_the_creation_sandboxing_flags(BrowsingContext const&
|
|||
bool BrowsingContext::has_navigable_been_destroyed() const
|
||||
{
|
||||
auto navigable = active_document()->navigable();
|
||||
return navigable && navigable->has_been_destroyed();
|
||||
return !navigable || navigable->has_been_destroyed();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user