At the moment, a (shared)worker's lifecycle is linked to related documents, but these should be creatable within a service worker to do things such as image processing, expensive diffing etc without locking up the service worker.
I imagine this means changing the worker's documents to be the worker's clients, where clients can be documents or service workers.
Previous discussion w3c/ServiceWorker#678