LibWeb: Avoid possible infinite recursion in Document::is_fully_active
This commit is contained in:
parent
c7773d0312
commit
bfc28bd621
Notes:
github-actions[bot]
2024-11-01 11:26:21 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/bfc28bd6215 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2081
1 changed files with 1 additions and 1 deletions
|
@ -2679,7 +2679,7 @@ bool Document::is_fully_active() const
|
|||
return true;
|
||||
|
||||
auto container_document = navigable->container_document();
|
||||
if (container_document && container_document->is_fully_active())
|
||||
if (container_document && container_document != this && container_document->is_fully_active())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue