New issue
Advanced search Search tips

Issue 706679 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 437662



Sign in to add a comment

APNG image support and the browser accept header

Project Member Reported by noel@chromium.org, Mar 30 2017

Issue description

APNG support ( issue 437662 ) was added to chrome.  In the code change 

https://codereview.chromium.org/2618633004

the browser's accept header was updated to indicate image/apng support:

Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8

We understand why image/webp is required, but the question in this bug is why is image/apng required?  This is a question for network / loader reviewers of the APNG code change (cc-ed) since this not really my area.
 

Comment 1 by noel@chromium.org, Mar 30 2017

Status: Available (was: Untriaged)
Quick test of APNG supporting browsers (current Safari and Firefox).  Navigate to request.urih.com, which reports the client request headers.  Results:

Chrome 59
Host : request.urih.com
User-agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3047.4 Safari/537.36
Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-encoding : gzip, deflate, sdch
Accept-language : en-US,en;q=0.8
Upgrade-insecure-requests : 1
Connection : keep-alive

Firefox 52.0
Host : request.urih.com
User-agent : Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-language : en-US,en;q=0.5
Accept-encoding : gzip, deflate
Upgrade-insecure-requests : 1
Connection : keep-alive

Safari 10.0.3
Host : request.urih.com
Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8
Accept-language : en-us
Accept-encoding : gzip, deflate
Upgrade-insecure-requests : 1
Connection : keep-alive

Seems that only Chrome adds image/apng to the Accept header. Firefox and Safari support APNG, but do not add it to their Accept.

The question then network / loader peeps: why does Chrome need to change the Accept header when other browsers do not?  Could it cause compat problems?

Comment 2 by noel@chromium.org, Mar 31 2017

Status: WontFix (was: Available)
Answer: sent in chrome so that devs could decide on the server-side about what to serve and not need to sniff.

Comment 3 by noel@chromium.org, Mar 31 2017

Blocking: 437662

Comment 4 by noel@chromium.org, Mar 31 2017

Cc: scroggo@chromium.org

Comment 5 by noel@chromium.org, Mar 31 2017

Cc: chrishtr@chromium.org

Comment 6 by noel@chromium.org, Mar 31 2017

Cc: hcm@chromium.org

Comment 7 Deleted

Sign in to add a comment