mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
AK: Port URL::m_query from DeprecatedString to String
This commit is contained in:
parent
55a01e72ca
commit
21fe86d235
Notes:
sideshowbarker
2024-07-17 02:55:44 +09:00
Author: https://github.com/shannonbooth
Commit: 21fe86d235
Pull-request: https://github.com/SerenityOS/serenity/pull/20510
Reviewed-by: https://github.com/ADKaster ✅
14 changed files with 63 additions and 75 deletions
|
@ -253,7 +253,7 @@ WebIDL::ExceptionOr<String> Location::search() const
|
|||
auto url = this->url();
|
||||
|
||||
// 2. If this's url's query is either null or the empty string, return the empty string.
|
||||
if (url.query().is_empty())
|
||||
if (!url.query().has_value() || url.query()->is_empty())
|
||||
return String {};
|
||||
|
||||
// 3. Return "?", followed by this's url's query.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue