[whatwg] Workers in HTML5 (was: postMessage apply(), pipe, etc.)
Aaron Boodman
aa at google.com
Thu Feb 14 11:54:55 PST 2008
Well, as long as you've brought it up, I was working on a proposal too:
http://code.google.com/p/google-gears/wiki/HTML5WorkerProposal
- a
On Thu, Feb 14, 2008 at 11:34 AM, Dimitri Glazkov
<dimitri.glazkov at gmail.com> wrote:
> Since postMessage API is looking more an more like the Gears worker
> messaging API (or better), can we go one step further and introduce
> workers into the HTML5, defined as invisible windows with limited
> capabilities:
>
> WorkerWindow openWorker(in DOMString url);
>
> with:
>
> interface WorkerWindow {
>
> // for consistency with Window
> readonly attribute Window window;
> readonly attribute Window self;
>
> // caps
> readonly attribute ClientInformation navigator;
>
> // session/local storage
> readonly attribute Storage sessionStorage;
> ...
>
> // database stuff
> Database openDatabase(...)
>
> // to open new worker windows
> WorkerWindow openWorker(in DOMString url);
>
> // messaging
> void postMessage(...)
>
> // some events
> attribute EventListener onabort;
> attribute EventListener onload;
> attribute EventListener onunload;
> }
>
> or something like that?
>
> :DG<
>
More information about the whatwg
mailing list