1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

LibWeb: Use Document::parse_url() for preload links

This commit is contained in:
Ali Mohammad Pur 2021-09-28 23:50:10 +03:30 committed by Andreas Kling
parent 3ec39fc62e
commit e9b9f89e70

View file

@ -40,7 +40,7 @@ void HTMLLinkElement::inserted()
if (m_relationship & Relationship::Preload) {
// FIXME: Respect the "as" attribute.
LoadRequest request;
request.set_url(attribute(HTML::AttributeNames::href));
request.set_url(document().parse_url(attribute(HTML::AttributeNames::href)));
m_preload_resource = ResourceLoader::the().load_resource(Resource::Type::Generic, request);
}
}