[whatwg] Possible bug in the way the spec about worker GC behavior
atwilson at google.com
Thu Oct 10 04:58:59 PDT 2013
Can you be more specific about what in the spec is incorrect? I guess
you're saying that Gecko shuts down the worker as soon as the parent
document is no longer active (when the worker transitions to suspendable),
so the worker is generally shutdown before the document is discarded?
I think that behavior is a reasonable interpretation of the spec, and I
don't think the language you cite implies otherwise - did you want to
suggest an alternate wording that is clearer? I think implicit in the quote
you described is that it only applies to workers that are still running,
not to workers that have previously been shutdown.
On Thu, Oct 10, 2013 at 12:12 AM, Ehsan Akhgari <ehsan at mozilla.com> wrote:
> Right now the spec says "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?
>  <
More information about the whatwg