W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: Firefox bug: "Worker" load ignores Content-Type version parameter

From: Simon Pieters <simonp@opera.com>
Date: Fri, 18 Nov 2011 13:25:35 +0100
To: public-webapps@w3.org, "Boris Zbarsky" <bzbarsky@mit.edu>
Message-ID: <op.v4454xoiidj3kv@simon-pieterss-macbook.local>
On Fri, 18 Nov 2011 13:03:03 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 11/19/11 12:52 AM, Julian Reschke wrote:
>> <http://dev.w3.org/html5/workers/#importing-scripts-and-libraries> says.
>
> For what it's worth, Gecko's worker loading code runs the same algorithm  
> to determine the charset as the algorithm used for <script src> (except  
> of course it does not have access to any "charset" attributes on an  
> element).
>
> And by "same algorithm" I mean "they call the same function in our code  
> which takes the HTTP headers, document object, value of @charset, and  
> bytes and returns a Unicode string".
>
> If we have UA compat on that behavior, it makes more sense to  
> standardize it than to standardize the UTF-8-only thing, perhaps....

Opera conforms to the spec and always decodes worker scripts as UTF-8.

-- 
Simon Pieters
Opera Software
Received on Friday, 18 November 2011 12:23:56 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:48 GMT