[whatwg] Passing more than JSON data to workers

Jonathan 'J5' Cook jonathan.j5.cook at gmail.com
Wed Dec 16 10:34:20 PST 2009


Simon Pieters wrote:
> On Wed, 16 Dec 2009 18:26:59 +0100, Boris Zbarsky <bzbarsky at mit.edu> 
> wrote:
>
>> On 12/16/09 9:23 AM, Jan Fabry wrote:
>>> The Google Gears API seems to provide both createWorker(scriptText) 
>>> and createWorkerFromUrl(scriptUrl). Why was only the URL variant 
>>> retained in the Web Workers spec?
>>
>> Does using a data: url with the script text not work?
>
> data: URL is prohibited per the spec (because of the same-origin 
> restriction) and doesn't work in Gecko or WebKit, but we've allowed 
> data: URLs in Opera.
>
Did anything ever come out of the earlier request-less web worker 
discussion?  (the one where I piped in w/o knowing what I was talking 
about!  oops!)

Regards,
J5



More information about the whatwg mailing list