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:03:58 +0100
To: "Bjoern Hoehrmann" <derhoermi@gmx.net>, "Julian Reschke" <julian.reschke@gmx.de>
Cc: "Anne van Kesteren" <annevk@opera.com>, www-archive@w3.org, public-Webapps@w3.org, "Arthur Barstow" <art.barstow@nokia.com>
Message-ID: <op.v4444wuzidj3kv@simon-pieterss-macbook.local>
On Fri, 18 Nov 2011 12:52:36 +0100, Julian Reschke <julian.reschke@gmx.de>  

>>>> If Gecko does that for Workers, that would be a bug. Workers are UTF-8
>>>> only.
>>> If you are saying that
>>> Content-Type: application/javascript;charset=iso-8859-1
>>> ... 0xC3 0xB6 ...
>>> should have U+00C3 U+00B6 when used via<script> and an U+00F6 when used
>>> via `new Worker` then I will stand ready to roll over the floor  
>>> laughing
>>> when Firefox and Chrome are changed so they conform to this bizarre  
>>> idea
>>> instead of doing the right thing and treating the two cases the same.
>> +1
>> The only alternative would be to *reject* the script.
>> ...
> But it seems that this is what  
> <http://dev.w3.org/html5/workers/#importing-scripts-and-libraries> says.
> Please consider this a bug report.

UTF-8-only for workers is deliberate. I don't see any reason to reject  
scripts that have other charset. Rejecting the script would mean that some  
authors can't use workers at all because their server uses charset and  
they can't change it.

Simon Pieters
Opera Software
Received on Friday, 18 November 2011 12:02:31 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:36 UTC