From bfc28bd62157507db711ffab7ae2683cd466da51 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Fri, 1 Nov 2024 01:39:15 +1300 Subject: [PATCH] LibWeb: Avoid possible infinite recursion in Document::is_fully_active --- Userland/Libraries/LibWeb/DOM/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 2e5e03d84a1..f8f08864f29 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -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;