[whatwg] Passing more than JSON data to workers

Simon Pieters simonp at opera.com
Wed Dec 16 10:13:05 PST 2009


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



More information about the whatwg mailing list