Re: [whatwg] [mimesniff] Sniffing archives

2012-12-05 Thread Gordon P. Hemsley
(It seems I somehow managed to not send this to the list the first time around. Addendum included.) On Tue, Dec 4, 2012 at 2:40 AM, Adam Barth w...@adambarth.com wrote: On Mon, Dec 3, 2012 at 12:39 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2012-11-29 20:25, Adam Barth wrote: These are

Re: [whatwg] [mimesniff] Sniffing archives

2012-12-04 Thread Henri Sivonen
On Tue, Dec 4, 2012 at 9:40 AM, Adam Barth w...@adambarth.com wrote: Also, some user agents treat downloads of ZIP archives differently than other sorts of download (e.g., they might offer to unzip them). Which user agents? For this use case, merely sniffing for the zip magic number is

Re: [whatwg] [mimesniff] Sniffing archives

2012-12-04 Thread Adam Barth
On Mon, Dec 3, 2012 at 11:59 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2012-12-04 08:40, Adam Barth wrote: On Mon, Dec 3, 2012 at 12:39 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2012-11-29 20:25, Adam Barth wrote: These are supported in Chrome. That's what causes the

Re: [whatwg] [mimesniff] Sniffing archives

2012-12-04 Thread Gordon P. Hemsley
On Tue, Dec 4, 2012 at 11:07 AM, Adam Barth w...@adambarth.com wrote: On Mon, Dec 3, 2012 at 11:59 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2012-12-04 08:40, Adam Barth wrote: They might otherwise be treated as a type that can be displayed (rather than downloaded). Also, some user

Re: [whatwg] [mimesniff] Sniffing archives

2012-12-04 Thread Ian Hickson
On Tue, 4 Dec 2012, Gordon P. Hemsley wrote: To be more specific: (1) Safari doesn't appear to prompt the user for any downloads. It just automatically downloads any file it can't handle. (2) If you allow Safari to open safe files that it downloads, ZIP appears to be one of them. Gzip and

Re: [whatwg] [mimesniff] Sniffing archives

2012-12-03 Thread Julian Reschke
On 2012-11-29 20:25, Adam Barth wrote: These are supported in Chrome. That's what causes the download. From Can you elaborate about what you mean by supported? Chrome sniffs for the type, and then offers to download as a result of that sniffing? How is that different from not sniffing in

Re: [whatwg] [mimesniff] Sniffing archives

2012-12-03 Thread Adam Barth
On Mon, Dec 3, 2012 at 12:39 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2012-11-29 20:25, Adam Barth wrote: These are supported in Chrome. That's what causes the download. From Can you elaborate about what you mean by supported? Chrome sniffs for the type, and then offers to

Re: [whatwg] [mimesniff] Sniffing archives

2012-12-03 Thread Julian Reschke
On 2012-12-04 08:40, Adam Barth wrote: On Mon, Dec 3, 2012 at 12:39 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2012-11-29 20:25, Adam Barth wrote: These are supported in Chrome. That's what causes the download. From Can you elaborate about what you mean by supported? Chrome sniffs

Re: [whatwg] [mimesniff] Sniffing archives

2012-11-29 Thread Gordon P. Hemsley
To be clear, I'm asking this because I would like to remove the sniffing of archive types from the mimesniff spec if there aren't any valid usecases. On Wed, Nov 28, 2012 at 12:18 PM, Gordon P. Hemsley gphems...@gmail.com wrote: The mimesniff spec currently includes signatures for ZIP, gzip, and

Re: [whatwg] [mimesniff] Sniffing archives

2012-11-29 Thread Adam Barth
These are supported in Chrome. That's what causes the download. From your comment, it's not clear to me if you are correctly reverse engineering existing user agents. The techniques we used to create this list originally are quite sophisticated and involved a massive amount of data [1]. It