diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 443eb28f5c..89a079290d 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -116,7 +116,8 @@ static NonnullRefPtr obtain_a_browsing_context_to_use_for // 3. Set newBrowsingContext's popup sandboxing flag set to a clone of sandboxFlags. } - // FIXME: 6. Discard browsingContext. + // 6. Discard browsingContext. + browsing_context.discard(); // 7. Return newBrowsingContext. return new_browsing_context;