mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
AK: Fix URL's operator<<() and use it
This commit is contained in:
committed by
Andreas Kling
parent
b299c75d45
commit
ad3871b64e
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user