W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2013

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

From: Andrew Wilson <atwilson@google.com>
Date: Thu, 10 Oct 2013 13:58:59 +0200
Message-ID: <CAArhhis0s+aB8C01b65KRmeSs2vq6K4_eK8DuEWO0npGq5GGmg@mail.gmail.com>
To: Ehsan Akhgari <ehsan@mozilla.com>
Cc: whatwg <whatwg@lists.whatwg.org>
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@mozilla.com> wrote:

> 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/>
Received on Thursday, 10 October 2013 11:59:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:11 UTC