mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Everywhere: Use URL::about_XXX factory functions
This commit is contained in:
parent
07f054e067
commit
9072a7caef
Notes:
github-actions[bot]
2025-02-15 17:06:59 +00:00
Author: https://github.com/shannonbooth
Commit: 9072a7caef
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3586
Reviewed-by: https://github.com/tcl3 ✅
18 changed files with 28 additions and 28 deletions
|
@ -112,7 +112,7 @@ URL::URL Location::url() const
|
|||
// A Location object has an associated url, which is this Location object's relevant Document's URL,
|
||||
// if this Location object's relevant Document is non-null, and about:blank otherwise.
|
||||
auto const relevant_document = this->relevant_document();
|
||||
return relevant_document ? relevant_document->url() : "about:blank"sv;
|
||||
return relevant_document ? relevant_document->url() : URL::about_blank();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/history.html#dom-location-href
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue