mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +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
|
@ -17,7 +17,7 @@ int main(int argc, char** argv)
|
|||
window->resize(800, 600);
|
||||
window->show();
|
||||
auto& web_view = window->set_main_widget<WebView::OutOfProcessWebView>();
|
||||
web_view.load(URL::create_with_file_protocol(argv[1]));
|
||||
web_view.load(URL::create_with_file_scheme(argv[1]));
|
||||
web_view.on_load_finish = [&](auto&) {
|
||||
auto dump = web_view.dump_layout_tree();
|
||||
write(STDOUT_FILENO, dump.characters(), dump.length() + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue