mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02: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
Notes:
sideshowbarker
2024-07-17 06:33:46 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/9d1336a1c9 Pull-request: https://github.com/SerenityOS/serenity/pull/15387
@@ -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