W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2008

[whatwg] Workers in HTML5 (was: postMessage apply(), pipe, etc.)

From: Dimitri Glazkov <dimitri.glazkov@gmail.com>
Date: Thu, 14 Feb 2008 13:34:54 -0600
Message-ID: <fb15ac210802141134u54c2398bpc644cc7f8c5d9fc7@mail.gmail.com>
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

WorkerWindow openWorker(in DOMString url);


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?

Received on Thursday, 14 February 2008 11:34:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:39 UTC