AK: Fix URL's operator<<() and use it

This commit is contained in:
Linus Groh 2020-05-16 18:35:39 +01:00 committed by Andreas Kling
parent b299c75d45
commit ad3871b64e
Notes: sideshowbarker 2024-07-19 06:36:09 +09:00
3 changed files with 6 additions and 8 deletions

View file

@ -78,7 +78,7 @@ void HTMLScriptElement::inserted_into(Node& new_parent)
URL src_url = document().complete_url(src);
if (src_url.protocol() == "file" && document().url().protocol() != src_url.protocol()) {
dbg() << "HTMLScriptElement: Forbidden to load " << src_url.to_string() << " from " << document().url().to_string();
dbg() << "HTMLScriptElement: Forbidden to load " << src_url << " from " << document().url();
return;
}