From 4230dbbb21ec68cbb9844130d5e90276c96d16c2 Mon Sep 17 00:00:00 2001 From: networkException Date: Thu, 29 Sep 2022 01:30:58 +0200 Subject: 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 --- Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp') diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp index d3c3af2ab2..18cbdbdcfd 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp @@ -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 {}; -- cgit v1.2.3