mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 06:32:26 +02:00
AK+Everywhere: Replace "protocol" with "scheme" url helpers
URL had properly named replacements for protocol(), set_protocol() and create_with_file_protocol() already. This patch removes these function and updates all call sites to use the functions named according to the specification. See https://url.spec.whatwg.org/#concept-url-scheme
This commit is contained in:
committed by
Linus Groh
parent
454bf1fde0
commit
4230dbbb21
@@ -168,7 +168,7 @@ void BrowsingContextContainer::shared_attribute_processing_steps_for_iframe_and_
|
||||
// FIXME: Set the referrer policy.
|
||||
|
||||
// AD-HOC:
|
||||
if (url.protocol() == "file" && document().origin().protocol() != "file") {
|
||||
if (url.scheme() == "file" && document().origin().protocol() != "file") {
|
||||
dbgln("iframe failed to load URL: Security violation: {} may not load {}", document().url(), url);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user