ladybird/Libraries/LibWeb/Encoding
Andreas Kling 01cec162c8 LibTextCodec: Stop buffering invalid UTF-8 tails
Treat trailing UTF-8 prefixes with an invalid second byte as complete
input for streaming decode, so replacement characters are emitted in the
current chunk instead of being held until later input or finish. Keep
valid incomplete prefixes buffered across chunk boundaries.

Keep TextDecoderStream from holding continuation bytes after an invalid
lead byte at a chunk boundary. Add LibTextCodec and TextDecoderStream
coverage for invalid tails, valid split sequences, EOF partials,
surrogate sequences, and malformed continuation tails.
2026-05-18 14:08:22 +02:00
..
TextDecoder.cpp LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
TextDecoder.h LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
TextDecoder.idl LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoderCommon.cpp LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoderCommon.h LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoderCommon.idl LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoderStream.cpp LibTextCodec: Stop buffering invalid UTF-8 tails 2026-05-18 14:08:22 +02:00
TextDecoderStream.h LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
TextDecoderStream.idl LibWeb: Implement TextDecoderStream 2026-04-28 19:17:09 +02:00
TextEncoder.cpp LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
TextEncoder.h LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
TextEncoder.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +02:00
TextEncoderCommon.cpp LibWeb: Extract the TextEncoderCommon mixin to its own IDL file 2025-02-07 11:04:46 -05:00
TextEncoderCommon.h LibWeb: Extract the TextEncoderCommon mixin to its own IDL file 2025-02-07 11:04:46 -05:00
TextEncoderCommon.idl LibWeb: Extract the TextEncoderCommon mixin to its own IDL file 2025-02-07 11:04:46 -05:00
TextEncoderStream.cpp LibWeb/Bindings: Emit one bindings header and cpp per IDL 2026-04-21 07:36:13 +02:00
TextEncoderStream.h LibWeb: Implement TextEncoderStream 2025-02-07 11:04:46 -05:00
TextEncoderStream.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +02:00