mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00: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:
parent
454bf1fde0
commit
4230dbbb21
Notes:
sideshowbarker
2024-07-17 06:33:50 +09:00
Author: https://github.com/networkException
Commit: 4230dbbb21
Pull-request: https://github.com/SerenityOS/serenity/pull/15387
61 changed files with 113 additions and 116 deletions
|
@ -56,7 +56,7 @@ static HTML::Origin url_origin(AK::URL const& url)
|
|||
if (url.scheme() == "file"sv) {
|
||||
// Unfortunate as it is, this is left as an exercise to the reader. When in doubt, return a new opaque origin.
|
||||
// Note: We must return an origin with the `file://' protocol for `file://' iframes to work from `file://' pages.
|
||||
return HTML::Origin(url.protocol(), String(), 0);
|
||||
return HTML::Origin(url.scheme(), String(), 0);
|
||||
}
|
||||
|
||||
return HTML::Origin {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue