mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Rename an origin's protocol to origin scheme
This patch updates the naming of an origin's protocol to be called scheme according to the specification. See https://html.spec.whatwg.org/multipage/origin.html#concept-origin-scheme
This commit is contained in:
committed by
Linus Groh
parent
4230dbbb21
commit
9d1336a1c9
@@ -117,7 +117,7 @@ void HTMLIFrameElement::load_src(String const& value)
|
||||
dbgln("iframe failed to load URL: Invalid URL: {}", value);
|
||||
return;
|
||||
}
|
||||
if (url.scheme() == "file" && document().origin().protocol() != "file") {
|
||||
if (url.scheme() == "file" && document().origin().scheme() != "file") {
|
||||
dbgln("iframe failed to load URL: Security violation: {} may not load {}", document().url(), url);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user