Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick some more DOMURL changes #25142

Merged
merged 8 commits into from
Oct 19, 2024
Merged

Cherry-pick some more DOMURL changes #25142

merged 8 commits into from
Oct 19, 2024

Commits on Oct 19, 2024

  1. LibWeb: Add URL reflection to obsolete HTMLImageElement lowsrc property

    (cherry picked from commit f2034270f14a72ebf0ac09493837c21bae0b4adf)
    bplaat authored and nico committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    6fbe52a View commit details
    Browse the repository at this point in the history
  2. LibWeb/Tests: Relocate search params test into URL folder

    This is where I have been trying to put all of the URL tests.
    
    (cherry picked from commit e2fb24c9b8e973542e8313ddb9e0f9f85a71c0e8)
    shannonbooth authored and nico committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    2926306 View commit details
    Browse the repository at this point in the history
  3. LibWeb: Implement value argument of URLSearchParams.delete

    (cherry picked from commit 5637dc43b2d6faf0576e7844581d0ced882d007f)
    shannonbooth authored and nico committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    0e92119 View commit details
    Browse the repository at this point in the history
  4. LibWeb: Implement value argument of URLSearchParams.has

    (cherry picked from commit 264b5160c2099f1aab6f06ece720de984ea994b2)
    shannonbooth authored and nico committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    7bcd0a3 View commit details
    Browse the repository at this point in the history
  5. LibURL: Make percent_encode_after_encoding infallible

    (cherry picked from commit 4bb211ba888b8fed9fd3da3163dc6e823d7e3c8a)
    shannonbooth authored and nico committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    f6b0041 View commit details
    Browse the repository at this point in the history
  6. LibWeb: Don't propogate small OOMs from URLSearchParams

    Made easier now that URL percent encode after encoding is also not
    throwing any errors. This simplfies a bunch of error handling.
    
    (cherry picked from commit df4739d7ced4159deb2b3e40ba6a1a08b7e7dd5b)
    shannonbooth authored and nico committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    916c579 View commit details
    Browse the repository at this point in the history
  7. LibWeb: Use a stable sort for searching URLSearchParams

    Quick sort is not a stable sort. This meant we had a subtle issue
    implementing this portion of the spec comment:
    
     > The relative order between name-value pairs with equal names must
     > be preserved.
    
    Switch to insertion sort which is a stable sort, and properly handles
    keys which are the same.
    
    Fixes 8 tests on  https://wpt.live/url/urlsearchparams-sort.any.html
    
    (cherry picked from commit 1ba6dbd86c0a94e5f068e6586199866f7de6354e)
    shannonbooth authored and nico committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    93d93a6 View commit details
    Browse the repository at this point in the history
  8. 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.
    
    (cherry picked from commit d755a83c09a5fba82a91f9cc3f9e3b2e07880127)
    shannonbooth authored and nico committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    038b24f View commit details
    Browse the repository at this point in the history