mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Remove some useless URL validity checks
It is not possible for a URL here to have a value and be invalid.
This commit is contained in:
parent
dc2b0e17bf
commit
0b8bcdcbd3
Notes:
github-actions[bot]
2025-02-19 13:03:07 +00:00
Author: https://github.com/shannonbooth
Commit: 0b8bcdcbd3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3609
Reviewed-by: https://github.com/trflynn89
3 changed files with 0 additions and 9 deletions
|
@ -1015,8 +1015,6 @@ static WebIDL::ExceptionOr<Navigable::NavigationParamsVariant> create_navigation
|
|||
}
|
||||
|
||||
// 16. Assert: locationURL is a URL.
|
||||
VERIFY(location_url.value()->is_valid());
|
||||
|
||||
// 17. Set entry's classic history API state to StructuredSerializeForStorage(null).
|
||||
entry->set_classic_history_api_state(MUST(structured_serialize_for_storage(vm, JS::js_null())));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue