mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
This commit is contained in:
Notes:
github-actions[bot]
2025-03-10 09:47:28 +00:00
Author: https://github.com/rmg-x Commit: https://github.com/LadybirdBrowser/ladybird/commit/798250d3e2a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3862 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/shannonbooth
@@ -1020,10 +1020,9 @@ static WebIDL::ExceptionOr<Navigable::NavigationParamsVariant> 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user