service worker streamed navigation stops after long period, but devtools claims the SW is still alive
Reported by
bke...@mozilla.com,
Aug 9 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Steps to reproduce the problem: 1. Visit this page: https://html-sw-stream.glitch.me/ 2. Possibly reload to get the service worker controlling the page. 3. Observe both iframes updating once per second. 4. Wait for 5.5 minutes. 5. Observe the server streamed iframe continues to update, but the service worker streamed iframe has stopped. 6. Open devtools application panel 7. Observe that devtools says the service worker is "activated and is running". What is the expected behavior? What went wrong? It seems like one of the the following should have happened: 1. The response body should continue streaming indefinitely. 2. The lifetime of the service worker is timed out and the service worker is killed. It seems unusual that the service worker is alive, but no longer streaming. Did this work before? N/A Does this work in other browsers? N/A Chrome version: <Copy from: 'about:version'> Channel: n/a OS Version: 10.0 Flash Version:
,
Aug 9 2017
Source code for the demo is here: https://glitch.com/edit/#!/html-sw-stream
,
Aug 9 2017
,
Aug 9 2017
Not reproducible on Version 60.0.3112.90 (Official Build) (64-bit) on Linux. Which chrome version are you using?
,
Aug 9 2017
Version 60.0.3112.90 (Official Build) (64-bit) On windows. I can try to get a screenshot...
,
Aug 9 2017
Hmm. Now I can't reproduce either. Maybe I got an update? Or maybe its intermittent? I'll try to reproduce again tomorrow. Sorry for the noise if its already fixed.
,
Aug 9 2017
It is working as intended. Chrome stops the service worker after 5+ minutes timeout even if it is streaming. https://chromium.googlesource.com/chromium/src/+/edcdf0a5b0f36f08372133f1712444ae61f88ba4/content/browser/service_worker/service_worker_version.cc#60 When you open the DevTools, Chrome restarts the service worker. So you see the running service worker in the DevTools. You can check the stopped service worker in chrome://serviceworker-internals/.
,
Aug 9 2017
Ah, thanks. I didn't realize devtools restarted it. |
|||
►
Sign in to add a comment |
|||
Comment 1 by bke...@mozilla.com
, Aug 9 2017