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/>