Bläddra i källkod

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.
Andreas Kling 2 år sedan
förälder
incheckning
f91b34ef2e
1 ändrade filer med 1 tillägg och 4 borttagningar
  1. 1 4
      Userland/Libraries/LibWeb/DOM/Document.cpp

+ 1 - 4
Userland/Libraries/LibWeb/DOM/Document.cpp

@@ -143,10 +143,7 @@ static JS::NonnullGCPtr<HTML::BrowsingContext> obtain_a_browsing_context_to_use_
         // 3. Set newBrowsingContext's popup sandboxing flag set to a clone of sandboxFlags.
         // 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;
     return new_browsing_context;
 }
 }