W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] [mimesniff] Treating application/octet-stream as unknown for sniffing

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 29 Nov 2012 02:34:52 -0500
Message-ID: <50B7101C.7080601@mit.edu>
To: whatwg@lists.whatwg.org
On 11/29/12 2:32 AM, Boris Zbarsky wrote:
> On 11/29/12 2:07 AM, Gordon P. Hemsley wrote:
>> I imagine this ties in, too, to the issues with sniffing CSS files
>> that has been raised elsewhere:
>> https://bugzilla.mozilla.org/show_bug.cgi?id=560388
>> https://bugzilla.mozilla.org/show_bug.cgi?id=562377
> Neither one of those has anything to do with application/octet-stream as
> far as I can tell.  Those cover cases in which data is sent with either
> no Content-Type header or with such a header which can't even be parsed
> as "major/minor".  Neither of which is true if the data says
> "appliction/octet-stream".

Oh, and the other important bit is that there is no "sniffing" CSS 
involved.  If the load is for a <link rel="stylesheet"> and the server 
doesn't send a content type or sends one that can't be parsed, Gecko 
just treats the data as CSS.  That's not the same thing as sniffing the 
data.  ;)

Received on Thursday, 29 November 2012 08:01:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:48 UTC