WebP mime sniffing incorrect |
||
Issue descriptionhttps://cs.chromium.org/chromium/src/net/base/mime_sniffer.cc?type=cs&q=image/webp&sq=package:chromium&g=0&l=155 https://developers.google.com/speed/webp/docs/riff_container - the header end "VP8 ", or "VP8L" (lossless) or "VP8X" (extended, such as alpha). This doesn't seem to stop us correctly sniffing webp in <img> (https://static-misc.glitch.me/webp-mime-sniff), so I'm not sure what the impact of this error is.
,
Sep 29
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/22af5afe1eb68315841eb4031fce9a8f2c9034dd commit 22af5afe1eb68315841eb4031fce9a8f2c9034dd Author: Fredrik Söderquist <fs@opera.com> Date: Sat Sep 29 00:38:43 2018 Fix WebP sniff pattern The current pattern wouldn't be able to sniff the 'lossless' and 'extended' WebP formats. Adjust the pattern to match the one described by [1]. [1] https://mimesniff.spec.whatwg.org/#matching-an-image-type-pattern Bug: 889420 Change-Id: I4b5a73d4d9477502d58df7460b9494e6540a59f3 Reviewed-on: https://chromium-review.googlesource.com/1248782 Reviewed-by: Asanka Herath <asanka@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#595273} [modify] https://crrev.com/22af5afe1eb68315841eb4031fce9a8f2c9034dd/net/base/mime_sniffer.cc [modify] https://crrev.com/22af5afe1eb68315841eb4031fce9a8f2c9034dd/net/base/mime_sniffer_unittest.cc
,
Sep 29
|
||
►
Sign in to add a comment |
||
Comment 1 by f...@opera.com
, Sep 27Status: Started (was: Untriaged)