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:
networkException
2022-09-29 01:37:44 +02:00
committed by Linus Groh
parent 4230dbbb21
commit 9d1336a1c9
3 changed files with 11 additions and 11 deletions

View File

@@ -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;
}