Firefox 157 Begins Native JPEG XL Decoder Support
Mozilla is adding a Rust-based JPEG XL decoder in Firefox 157, reducing legacy C++ security exposure. With Chrome and Safari alignment, JPEG XL could reach mainstream browser support by 2026.
Why JPEG XL matters again for browsers
Web image formats have largely settled around WebP and AVIF as practical standards. Yet Mozilla is reigniting the format conversation by shipping a baseline JPEG XL decoder in Firefox 157. JPEG XL drew design-phase attention for its higher compression efficiency than legacy JPEG and its ability to support both lossless and lossy modes in a single format. Where WebP and AVIF are formats extended from video codecs, JPEG XL differentiates itself as a still-image-specialized decoder in scenarios like progressive rendering and batch optimization. In other words, it reopens the option to balance load-time experience and compression ratio differently even for identical images.
Legacy decoder maintenance and security debt
The long support tail for JPEG XL has complicated implementation. To date, more than 10 C++ multithreaded decoder implementations have been released, each carrying its own memory-safety, buffer-boundary, and race-condition exposure. Because browser image decoders are among the most frequently invoked native-code components, even small correctness regressions carry outsized risk. Mozilla’s Rust choice reflects that calculus. Reimplementing the decoder in Rust, which has a safe memory model, can fundamentally reduce the likelihood of memory-safety bugs in legacy C++ code. That lowers not just security risk, but also the cost for maintainers to understand and modify the code.
Firefox 157’s Rust decoder strategy
Firefox 157’s baseline JPEG XL decoder is built on a newly written decoder in Rust. This is not just adding format support; it is a technical choice aimed at making the browser image pipeline itself safer. The expected effects of the Rust port are twofold. One is the fundamental reduction of memory-safety bug classes; the other is improved reusability of decoder code with other browser subsystems. Mozilla has noted that this decoder improvement can also serve as a concrete proof point for Rust adoption. GeekNews coverage assessed that this approach carries significant technical implications. (GeekNews source)
Cross-browser compatibility timeline
For JPEG XL to establish itself as a practical format, Chrome and Safari support trends are most critical. Chrome is currently in experimental public tuning, while Safari is maintaining and evolving its existing implementation. GeekNews coverage projected that if both browsers’ plans align, JPEG XL could reach mainstream browser deployment before late 2026. Should Chrome move beyond flag-level support to default-enabled status and Safari stabilize its existing implementation, web developers would see significantly reduced burdens around format negotiation and fallback-image delivery.
Current state and adoption limits of web image formats
In today’s web standardization landscape, JPEG XL’s position is relatively conventional. AVIF, built on AV1, is quickly broadening an ecosystem that spans both video and images, whereas JPEG XL is focusing on still-image optimization and taking an incremental path. Technically, JPEG XL offers progressive decoding, animated JPEG XL, and flexible metadata support, but fragmented browser support still makes it hard to adopt in practice. Consensus processes at standards bodies like the W3C also affect format adoption speed. In short, a gap remains between JPEG XL’s technical strengths and real-world ecosystem realization.
Practical considerations and cautions
To apply JPEG XL in production, review current browser share and fallback-image strategies first. Even with Firefox support, user environments vary by Chrome and Safari version, so conditional delivery based on content negotiation remains necessary. Also verify whether your CMS/CDN/image-transcoding pipelines support JPEG XL by default. Technically attractive as it is, incremental adoption remains the realistic approach until the ecosystem is fully aligned. Developers should follow browser release notes and format-standardization progress together.
Related posts
Agent Behavior Standard: A New Way to Evaluate AI Agents
Agent Behavior standardizes repeated AI agent actions. This framework makes long-running agent behavior observable and measurable across recognition, judgment, execution, and recovery.
GLM-5.3 openweight shifts coding, agents, and security at once
Z.ai released the GLM-5.3 openweight. Post-training alone lifts coding, agent, and security benchmarks on the same base model, and weights/configs/tokenizers can be deployed or fine-tuned directly.
Scaling Git at Any Scale — Cursor's Continuity Storage Architecture
Git server scaling is hard by design. Cursor's Continuity uses S3 WAL as the storage source of truth, keeping consistency while flexibly sizing replicas from small repos up to large monorepos.
Curated, fact-checked, and edited by a single operator before publishing.