mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Actually set empty serialized query to OptionalNone
Because the type returned by to_string is a String, _not_ an
Optional<String>, the following code:
if (serialized_query.is_empty())
serialized_query = {};
Was achieving nothing at all! Make sure that the type is an
Optional<String> so that we're not just setting an empty string to an
empty string.
This commit is contained in:
committed by
Tim Ledbetter
parent
1ba6dbd86c
commit
d755a83c09
Notes:
github-actions[bot]
2024-08-12 22:02:25 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/d755a83c09a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1033 Reviewed-by: https://github.com/tcl3 ✅
@@ -0,0 +1,9 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let url = new URL("https://www.birdoftheyear.org.nz/?")
|
||||
println(url.href);
|
||||
url.searchParams.sort()
|
||||
println(url.href);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user