diff --git a/Libraries/LibWeb/HTML/Navigable.cpp b/Libraries/LibWeb/HTML/Navigable.cpp index eef5fc1707e..0dad9dd4a16 100644 --- a/Libraries/LibWeb/HTML/Navigable.cpp +++ b/Libraries/LibWeb/HTML/Navigable.cpp @@ -1015,8 +1015,6 @@ static WebIDL::ExceptionOr 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()))); diff --git a/Libraries/LibWeb/HTML/Scripting/Fetching.cpp b/Libraries/LibWeb/HTML/Scripting/Fetching.cpp index 159f30fae3c..93f2a244a22 100644 --- a/Libraries/LibWeb/HTML/Scripting/Fetching.cpp +++ b/Libraries/LibWeb/HTML/Scripting/Fetching.cpp @@ -186,8 +186,6 @@ WebIDL::ExceptionOr> resolve_imports_match(ByteString const& return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, String::formatted("Import resolution of '{}' was blocked by a null entry.", specifier_key).release_value_but_fixme_should_propagate_errors() }; // 2. Assert: resolutionResult is a URL. - VERIFY(resolution_result->is_valid()); - // 3. Return resolutionResult. return resolution_result; } @@ -207,8 +205,6 @@ WebIDL::ExceptionOr> resolve_imports_match(ByteString const& return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, String::formatted("Import resolution of '{}' was blocked by a null entry.", specifier_key).release_value_but_fixme_should_propagate_errors() }; // 2. Assert: resolutionResult is a URL. - VERIFY(resolution_result->is_valid()); - // 3. Let afterPrefix be the portion of normalizedSpecifier after the initial specifierKey prefix. // FIXME: Clarify if this is meant by the portion after the initial specifierKey prefix. auto after_prefix = normalized_specifier.substring(specifier_key.length()); diff --git a/Libraries/LibWeb/SVG/SVGUseElement.cpp b/Libraries/LibWeb/SVG/SVGUseElement.cpp index ac8f2744103..1a17dae39a1 100644 --- a/Libraries/LibWeb/SVG/SVGUseElement.cpp +++ b/Libraries/LibWeb/SVG/SVGUseElement.cpp @@ -136,9 +136,6 @@ GC::Ptr SVGUseElement::referenced_element() if (!m_href.has_value()) return nullptr; - if (!m_href->is_valid()) - return nullptr; - if (!m_href->fragment().has_value()) return nullptr;