[whatwg] Passing more than JSON data to workers

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