New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 730588 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Mac
Pri: 2
Type: Compat



Sign in to add a comment

The picture tag lacks support of "image/apng" as source type

Reported by lordd....@gmail.com, Jun 7 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36

Example URL:

Steps to reproduce the problem:
Because Chrome now supports APNG, it would be nice to add "image/apng" MIME type support to source tag.
The idea is to use the picture tag to display APNG only in those browsers which support it, falling back to GIF otherwise. Please see the attached example.

What is the expected behavior?
Chrome displays APNG image.

What went wrong?
Chrome displays GIF image.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 59.0.3071.86  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

APNG MIME type: https://wiki.mozilla.org/APNG_Specification#MIME_type

Attached example works in Firefox.
 
example.html
330 bytes View Download
Labels: Needs-Triage-M59
Cc: hdodda@chromium.org
Labels: Needs-Feedback
This seems more lika a feature request ..

@lordd.csc-- Could you please confirm us if this is a feature request or if you have seen this working earlier in chrome.

Thanks!
No, it did not work before, because Chrome did not support APNG before version 59.
Project Member

Comment 4 by sheriffbot@chromium.org, Jun 9 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: M-61
Status: Untriaged (was: Unconfirmed)
As per comment #3 this issue seems like a feature request. Untriaged this issue so that it gets addressed.

Thank you!!
Components: Blink>Image

Comment 7 by f...@opera.com, Mar 9 2018

Labels: OS-Android OS-Linux OS-Mac
Owner: f...@opera.com
Status: Assigned (was: Untriaged)
Thanks for the report (sorry it took so long to reach an appropriate component =/.) This sounds like a (minor) oversight made when adding the APNG support, so a bug. Should be roughly a oneliner to fix too.
Project Member

Comment 8 by bugdroid1@chromium.org, Mar 9 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/61d26e9d8d4e15f0ce2653e118933d5d8bac0805

commit 61d26e9d8d4e15f0ce2653e118933d5d8bac0805
Author: Fredrik Söderquist <fs@opera.com>
Date: Fri Mar 09 15:15:44 2018

[PE] Add "image/apng" to supported image MIME types

Supported for animated PNG (APNG) was added via  crbug.com/437662  (commit
7d2b8c45afc9c0230410011293cc2e1dbb8943a7.) The "image/apng" MIME type is
included in the "Accept" header for image requests.

Add "image/apng" to kSupportedImageTypes to allow things like the
<picture> element to work (select an appropriate image based on 'type'.)

Add "image/apng" to kPrimaryMappings to allow the MIME type to resolve
to a reasonable file extension.

Bug:  730588 
Change-Id: I070e8b16dc8312552b11dc32e776493b3a5be669
Reviewed-on: https://chromium-review.googlesource.com/957092
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Asanka Herath <asanka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542113}
[modify] https://crrev.com/61d26e9d8d4e15f0ce2653e118933d5d8bac0805/net/base/mime_util.cc
[add] https://crrev.com/61d26e9d8d4e15f0ce2653e118933d5d8bac0805/third_party/WebKit/LayoutTests/external/wpt/apng/supported-in-source-type.html
[modify] https://crrev.com/61d26e9d8d4e15f0ce2653e118933d5d8bac0805/third_party/WebKit/common/mime_util/mime_util.cc

Comment 9 by f...@opera.com, Mar 9 2018

Status: Fixed (was: Assigned)

Sign in to add a comment