mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:07:45 +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
61 changed files with 113 additions and 116 deletions
|
@ -142,7 +142,7 @@ bool RunWindow::run_via_launch(String const& run_input)
|
|||
{
|
||||
auto url = URL::create_with_url_or_path(run_input);
|
||||
|
||||
if (url.protocol() == "file") {
|
||||
if (url.scheme() == "file") {
|
||||
auto real_path = Core::File::real_path_for(url.path());
|
||||
if (real_path.is_null()) {
|
||||
// errno *should* be preserved from Core::File::real_path_for().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue