From 72098d2699f23bbd7184dc1fa21d0db88345648d Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Sat, 5 Nov 2022 15:11:59 +0000 Subject: [PATCH] LibWeb: Return after firing the iframe load event for about:blank This was a missing spec step. This prevents it navigating to about:blank, which will blow away the document and thus any setup that was done in the iframe load event. --- Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp index d7f62d8aab..c51093b93f 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp @@ -164,6 +164,7 @@ void BrowsingContextContainer::shared_attribute_processing_steps_for_iframe_and_ } // 3. Return. + return; } // 5. Let resource be a new request whose URL is url and whose referrer policy is the current state of element's referrerpolicy content attribute.