1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

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.
This commit is contained in:
Andreas Kling 2022-12-16 22:34:31 +01:00
parent 39f16ecd41
commit f91b34ef2e

View file

@ -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.
}
// 6. Discard browsingContext.
browsing_context.discard();
// 7. Return newBrowsingContext.
// 6. Return newBrowsingContext.
return new_browsing_context;
}