mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Everywhere: Use URL::about_XXX factory functions
This commit is contained in:
committed by
Tim Ledbetter
parent
07f054e067
commit
9072a7caef
@@ -72,7 +72,7 @@ Trustworthiness is_origin_potentially_trustworthy(URL::Origin const& origin)
|
||||
Trustworthiness is_url_potentially_trustworthy(URL::URL const& url)
|
||||
{
|
||||
// 1. If url is "about:blank" or "about:srcdoc", return "Potentially Trustworthy".
|
||||
if (url == "about:blank"sv || url == "about:srcdoc"sv)
|
||||
if (url == URL::about_blank() || url == URL::about_srcdoc())
|
||||
return Trustworthiness::PotentiallyTrustworthy;
|
||||
|
||||
// 2. If url’s scheme is "data", return "Potentially Trustworthy".
|
||||
|
||||
Reference in New Issue
Block a user