From f91b34ef2e094e838be1659c10bfaf87b6c2541c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 16 Dec 2022 22:34:31 +0100 Subject: [PATCH] LibWeb: Update "obtain a BC to use for a navigation response" This no longer calls "discard" on the browsing context, since discarding is going away. --- Userland/Libraries/LibWeb/DOM/Document.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 82427b2ddb..00b5dc7523 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -143,10 +143,7 @@ static JS::NonnullGCPtr obtain_a_browsing_context_to_use_ // 3. Set newBrowsingContext's popup sandboxing flag set to a clone of sandboxFlags. } - // 6. Discard browsingContext. - browsing_context.discard(); - - // 7. Return newBrowsingContext. + // 6. Return newBrowsingContext. return new_browsing_context; }