ladybird/Tests
Andreas Kling 9164c9784d LibGfx: Treat PNG files with invalid frame data as transparent
If we have a valid PNG header with geometry info etc, we should still
display it as *something*, even if the image data itself is missing or
corrupted.

This matches the behavior of other browsers, and is something that
Cloudflare Turnstile checks for.

To achieve this, we split the PNG decoder's initialization into two
steps: "everything except reading frame data" and "reading frame data".
If the latter step fails, we yield a transparent bitmap with the
geometry from the PNG's IHDR chunk.
2024-12-19 16:49:28 +01:00
..
AK Everywhere: Include HashMap only where it's actually used 2024-12-09 12:31:16 +01:00
ClangPlugins
LibCompress
LibCore
LibCrypto LibCrypto: Implement AES-KW 2024-12-17 11:00:14 +01:00
LibDiff
LibGC
LibGfx LibGfx: Remove ICC::Profile and friends 2024-12-16 07:39:49 +01:00
LibJS LibJS: Concatenate all included test262 harness files to a single script 2024-12-13 05:26:39 -08:00
LibMedia
LibRegex LibRegex: Treat checks against nonexistent checkpoints as empty 2024-12-13 10:00:16 +01:00
LibTest
LibTextCodec
LibThreading
LibTLS
LibUnicode
LibURL
LibWasm
LibWeb LibGfx: Treat PNG files with invalid frame data as transparent 2024-12-19 16:49:28 +01:00
LibWebView
LibXML
Resources
CMakeLists.txt