W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] Worker lifecycle

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 28 May 2009 09:29:24 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0905280731420.5710@hixie.dreamhostps.com>

I just checked in a substantial change to the lifetime model for workers. 
Instead of being bound to their ports, which became especially hard to 
implement for shared workers, they now just live as long as the Document 
that created them (all of the Documents that obtained them, for shared 
workers), with this ownership inheriting to nested workers.

I also removed the various ways to observe the lifetime, namely .active 
and the 'close' events.

I hope this will make the shared workers easier to implement. Please let 
me know if this screws anything up for dedicated workers.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 28 May 2009 02:29:24 UTC

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