LibWeb: Strip trailing spaces from opaque URL path on query change

This was added in fdaa0e5a
to fix a case where roundtrips could fail. We had already partially
implemented these steps - but it seems this was missed in the update of
URLSearchParams.

Fixes the last failing WPT test for:

https://wpt.live/url/urlsearchparams-delete.any.html
This commit is contained in:
Shannon Booth 2024-08-14 17:41:48 +12:00 committed by Andreas Kling
commit cff3e78a14
Notes: github-actions[bot] 2024-08-17 05:45:33 +00:00
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,6 @@
URL pathname is 'space '
URL href is 'data:space ?test'
true
false
URL pathname is 'space'
URL href is 'data:space'