[whatwg] Possible bug in the way the spec about worker GC behavior

Ehsan Akhgari ehsan at mozilla.com
Wed Oct 9 15:12:38 PDT 2013


Right now the spec says[1] "Whenever a Document object is discarded, it
must be removed from the list of the worker's Documents of each worker
whose list contains that Document.".  If I'm reading this correctly, this
implies that the worker object should be alive by the time that the
document gets discarded, which is not what Gecko implements.

Should this be fixed in the spec?

[1] <
http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#the-worker%27s-lifetime
>

Cheers,
--
Ehsan
<http://ehsanakhgari.org/>


More information about the whatwg mailing list