mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibWeb: De-duplicate definition of url_matches_about_blank
We don't need two static methods for this.
This commit is contained in:
committed by
Alexander Kalenik
parent
a83668d838
commit
a565021147
@@ -37,7 +37,7 @@
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#matches-about:blank
|
||||
static bool url_matches_about_blank(AK::URL const& url)
|
||||
bool url_matches_about_blank(AK::URL const& url)
|
||||
{
|
||||
// A URL matches about:blank if its scheme is "about", its path contains a single string "blank", its username and password are the empty string, and its host is null.
|
||||
return url.scheme() == "about"sv
|
||||
|
||||
Reference in New Issue
Block a user