From 798250d3e2a2e5e7b6616f87c6f4da471ef886ba Mon Sep 17 00:00:00 2001 From: rmg-x Date: Sun, 9 Mar 2025 09:17:53 -0500 Subject: [PATCH] LibWeb/HTML: Remove unnecessary verification for `location_url` error There is a check shortly after this, so there is no need to crash in the event of an error. --- Libraries/LibWeb/HTML/Navigable.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/LibWeb/HTML/Navigable.cpp b/Libraries/LibWeb/HTML/Navigable.cpp index 45e2bd99640..57297c74a16 100644 --- a/Libraries/LibWeb/HTML/Navigable.cpp +++ b/Libraries/LibWeb/HTML/Navigable.cpp @@ -1020,10 +1020,9 @@ static WebIDL::ExceptionOr create_navigation // 14. Set locationURL to response's location URL given currentURL's fragment. location_url = response_holder->response()->location_url(current_url.fragment()); - VERIFY(!location_url.is_error()); - // 15. If locationURL is failure or null, then break. if (location_url.is_error() || !location_url.value().has_value()) { + dbgln("Received bad location_url when creating navigation params"); break; }