mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00: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:
parent
88d35c547c
commit
798250d3e2
Notes:
github-actions[bot]
2025-03-10 09:47:28 +00:00
Author: https://github.com/rmg-x
Commit: 798250d3e2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3862
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/shannonbooth
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue