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:
Shannon Booth
2025-02-16 14:06:50 +13:00
committed by Tim Flynn
parent dc2b0e17bf
commit 0b8bcdcbd3
3 changed files with 0 additions and 9 deletions

View File

@@ -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())));