[Webkit-unassigned] [Bug 182874] New: Service Worker occasionally becomes unresponsive
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 16 07:33:17 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=182874
Bug ID: 182874
Summary: Service Worker occasionally becomes unresponsive
Product: WebKit
Version: Safari 11
Hardware: iPhone / iPad
OS: iOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: Service Workers
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tomac at google.com
Created attachment 334040
--> https://bugs.webkit.org/attachment.cgi?id=334040&action=review
Relevant screenshots
Note: This is not reliably reproducible.
Environment: iPhone X, iOS 11.3 Beta 2, Build 15E5178f.
Steps to trigger:
1) Use iPhone, browse for a while :-/.
2) Open https://airhorner.com/.
3) Repeat-load to make sure Service Worker is installed, and activated.
4) Use iPhone, browse for a while :-/.
5) Connect to Dev Tools, note how Service Worker is not detected (screenshot: sw_not_detected.png).
6) To check if the Service Worker is there, in the console, run:
navigator.serviceWorker.getRegistration().then(r=>document.body.innerHTML = `scope: ${r.scope}`)
See the scope logged to the screen (screenshot: sw_scope.jpg).
7) To check if there is stuff in the cache, in the console, run:
caches.keys().then(k=>caches.open(k[0])).then(c=>c.keys()).then(c=>document.body.innerHTML = `<pre>${JSON.stringify(c.map(u=>u.url), null, 2)}</pre>`)
See the cache keys logged to the screen (screenshot: cache_keys.jpg).
8) Go offline, try to reload, see it fail (screenshot: offline_failure.jpg).
9) Reboot iPhone.
10) Open https://airhorner.com/.
11) Connect to Dev Tools, note how Service Worker now is detected (screenshot: sw_detected.png).
12) Go offline, try to reload, see it get stuck (screenshot: stuck_loading.jpg).
13) Use iPhone, browse for a while :-/ .
14) Go offline, try to reload, see it succeed (screenshot: offline_success.jpg).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180216/6ed754ed/attachment.html>
More information about the webkit-unassigned
mailing list