W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] Passing more than JSON data to workers

From: Simon Pieters <simonp@opera.com>
Date: Wed, 16 Dec 2009 19:13:05 +0100
Message-ID: <op.u41l73dxidj3kv@simon-pieterss-macbook.local>
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.

-- 
Simon Pieters
Opera Software
Received on Wednesday, 16 December 2009 10:13:05 UTC

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