mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
AK: Fix URL's operator<<() and use it
This commit is contained in:
parent
b299c75d45
commit
ad3871b64e
Notes:
sideshowbarker
2024-07-19 06:36:09 +09:00
Author: https://github.com/linusg
Commit: ad3871b64e
Pull-request: https://github.com/SerenityOS/serenity/pull/2253
Issue: https://github.com/SerenityOS/serenity/issues/2250
3 changed files with 6 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue