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

LibWeb: Stop shadowing location_url

This is a bug. The value set here needs to be visible to later steps.
This commit is contained in:
Sam Atkins 2023-12-22 12:28:29 +00:00 committed by Sam Atkins
parent db34ee357d
commit 99fc3c7551

View file

@ -869,7 +869,7 @@ static WebIDL::ExceptionOr<Variant<Empty, NavigationParams, NonFetchSchemeNaviga
// This is because we care about the same-originness of the embedded content against the parent context, not the navigation source.
// 14. Set locationURL to response's location URL given currentURL's fragment.
auto location_url = response_holder->response()->location_url(current_url.fragment());
location_url = response_holder->response()->location_url(current_url.fragment());
VERIFY(!location_url.is_error());