This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11818 - As documented in the "Creating workers" section, a worker *must* be an external script. This prevents developing or deploying code that uses Web Workers as a single page app, which is often quite handy. Could this restriction be lifted?
Summary: As documented in the "Creating workers" section, a worker *must* be an exter...
Status: RESOLVED LATER
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Web Workers (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-20 06:40 UTC by contributor
Modified: 2011-02-16 07:48 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2011-01-20 06:40:33 UTC
Specification: http://dev.w3.org/html5/workers/
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#top

Comment:
As documented in the "Creating workers"  section, a worker *must* be an
external script. This prevents developing or deploying code that uses Web
Workers as a single page app, which is often quite handy. Could this
restriction be lifted?

Posted from: 68.116.10.83
Comment 1 Jack Coulter 2011-01-20 08:07:07 UTC
While not mentioned in the spec, most implementations support creating workers from Blob URLs, if I recall correctly... Perhaps this should be documented on the official standard?
Comment 2 Ian 'Hixie' Hickson 2011-02-16 07:48:31 UTC
This is probably one of the first features we're gonna to add when we add the next set of features, but I think it's a bit premature to add it now. First we have to get the browsers to actually implement the spec as written! :-)