From 99fc3c7551fbd37ef1bdfaf984a2994b6e04bbf2 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 22 Dec 2023 12:28:29 +0000 Subject: [PATCH] LibWeb: Stop shadowing location_url This is a bug. The value set here needs to be visible to later steps. --- Userland/Libraries/LibWeb/HTML/Navigable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/Navigable.cpp b/Userland/Libraries/LibWeb/HTML/Navigable.cpp index 3ad62b3c485..a9e421ef28d 100644 --- a/Userland/Libraries/LibWeb/HTML/Navigable.cpp +++ b/Userland/Libraries/LibWeb/HTML/Navigable.cpp @@ -869,7 +869,7 @@ static WebIDL::ExceptionOrresponse()->location_url(current_url.fragment()); + location_url = response_holder->response()->location_url(current_url.fragment()); VERIFY(!location_url.is_error());