ladybird/Tests
Shannon Booth d6af5bf5eb LibURL: Allow inputs containing only whitespace
The check for:

```
    if (start_index >= end_index)
        return {};
```

To prevent an out of bounds when trimming the start and end of the input
of whitespace was preventing valid URLs (only having whitespace in the
input) from being parsed.

Instead, prevent start_index from ever getting above end_index in the
first place, and don't treat empty inputs as an error.

Fixes one WPT test on:

https://wpt.live/url/url-constructor.any.html
2024-08-05 17:21:26 +01:00
..
AK AK: Add a method to compute UTF-16 length from a UTF-8 string 2024-07-31 05:55:34 -04:00
ClangPlugins Tests: Update ClangPlugins tests for current clang version 2024-07-25 18:35:57 -06:00
LibAudio
LibCompress
LibCore
LibCrypto
LibDiff
LibGfx LibGfx+LibWeb: Remove typeface classes for WOFF fonts 2024-07-22 15:05:04 +02:00
LibJS Everywhere: Warn on function definitions without prototypes 2024-07-17 21:51:29 +02:00
LibMedia Tests: Do not install LibMedia test files 2024-07-25 13:25:09 -06:00
LibRegex
LibTest
LibTextCodec LibTextCodec: Use AK facilities to validate and convert UTF-16 to UTF-8 2024-07-18 19:43:57 +02:00
LibThreading
LibTLS
LibTTF
LibUnicode LibUnicode: Prefix AK::Duration with AK Namespace 2024-07-18 09:43:38 +01:00
LibURL LibURL+Everywhere: Only percent decode URL paths when actually needed 2024-08-05 09:58:13 +02:00
LibWasm
LibWeb LibURL: Allow inputs containing only whitespace 2024-08-05 17:21:26 +01:00
LibWebView
LibXML
CMakeLists.txt