ladybird/Tests
Timothy Flynn 5f0f97b3cc LibWeb: Do not insert "return" key presses into input element values
When the return key is pressed, we try to handle it as a commit action
for input elements. However, we would then go on to actually insert the
return key's code point (U+000D) into the input element. This would be
sanitized out, but would leave the input element in a state where it
thinks it has text to commit. This would result in a change event being
fired when the return key is pressed multiple times in a row.

We were also firing the beforeinput/input events twice for all return
key presses.

To fix this, this patch changes the input event target to signify if it
actually handled the return key. If not (i.e. for textarea elements),
only then do we insert the code point. We also must not fall through to
the generic key handler, to avoid the repeated input events.
2025-03-22 17:27:45 +01:00
..
AK AK: Support storing blocks in AK::Function 2025-03-18 17:15:08 -06:00
ClangPlugins LibGC: Rename MarkedVector => RootVector 2024-12-26 19:10:44 +01:00
LibCompress LibCompress: Refactor deflate de/compressor using zlib 2025-03-19 13:46:50 +01:00
LibCore LibCore: Add swift bindings for EventLoop as an Executor and Actor 2025-03-15 21:51:22 -06:00
LibCrypto LibCrypto: Remove unused cksum class 2025-03-19 13:46:50 +01:00
LibDiff
LibDNS LibDNS: Ensure non-blocking socket is used for TCP connections 2025-02-22 18:39:58 +01:00
LibGC Everywhere: Run clang-format 2024-12-28 05:39:32 -08:00
LibGfx LibGfx: Fix handling of partially corrupt GIFs 2025-03-20 16:12:53 +01:00
LibJS AK+Everywhere: Convert JSON value serialization to String 2025-02-20 19:27:51 -05:00
LibMedia Meta: Consolidate checking for the system audio backend 2024-12-25 12:00:43 +01:00
LibRegex LibRegex: Remove orphaned save points in nested LookAhead 2025-03-17 16:11:02 +01:00
LibTest
LibTextCodec
LibThreading
LibTLS LibCrypto: Remove unused Certificate class 2025-02-18 00:02:26 +01:00
LibUnicode LibUnicode: Consistently reject out-of-bounds segmenter indices 2025-01-16 23:22:48 +01:00
LibURL LibURL/Pattern: Implement the constructor string parser 2025-03-15 07:39:03 -04:00
LibWasm LibJS+LibWeb: Use realm.create<T> instead of heap.allocate<T> 2024-11-13 16:51:44 -05:00
LibWeb LibWeb: Do not insert "return" key presses into input element values 2025-03-22 17:27:45 +01:00
LibWebView LibURL+LibWeb: Make URL::serialize return a String 2024-12-04 16:34:13 +00:00
LibXML
Resources Tests: Annotate configurationJSON in SwiftTestMain with noisolate 2024-11-26 11:00:48 +01:00
CMakeLists.txt LibDNS: Add basic DNS::Resolver tests 2025-02-18 15:46:44 +01:00