Issue metadata
Sign in to add a comment
|
BackgroundSync's waitUntil parameter function is triggered 5 minutes after disabling Network Throttle
Reported by
chevobbe...@gmail.com,
May 4 2016
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:46.0) Gecko/20100101 Firefox/46.0 Steps to reproduce the problem: 1. Go to https://nicolaschevobbe.com/bugs/backgroundSync/index.html 2. Open devtools 3. Go to network throttling, select "Offline" 4. Click "Request Background Sync" 5. In devtools, set network throttling to "No throttling" What is the expected behavior? Step 4 shows "Sync requested" and shortly after "Sync failed". Step 5 shows "Sync completed" shortly after throttling is turned off What went wrong? Step 4 rightfully shows "Sync requested" and shortly after "Sync failed". Step 5 show "Sync completed", but 5 minutes after turning off throttling. Did this work before? N/A Chrome version: 52.0.2724.0 (Build officiel) canary (64 bits) Channel: canary OS Version: OS X 10.10 Flash Version: Shockwave Flash 21.0 r0 It doesn't work in Chromium 49 either
,
May 4 2016
Yes, Chrome's network status monitor doesn't know about devtools throttling, sadly. Is the expected behaviour in this case really 'Sync failed' when offline? I thought that if everything was working correctly, that the sync wouldn't be attempted in #4, and that you would only see the "completed" message in #5.
,
May 4 2016
I think you are right. At least, that's what is done when I test it on smartphone, toggling Airplane mode.
,
May 6 2016
The behavior is not consistent to bisect this issue, its sometime success and sometimes getting the error and sometimes get error in console as below the request being Sync requested. Error in console being Sync requested. Uncaught (in promise) TypeError: Cannot read property 'register' of undefined(…)(anonymous function) @ index.html:25 Request you to help with a consistent repro steps to further triage it.
,
May 6 2016
,
May 6 2016
Service workers and improving network throttling are hot topics right now and we are working hard to get them to work properly and be consistent. This issue seems to also collide with "disable cache" check box as well. I am going to merge this issue with another because they are very similar. Thanks for reporting!
,
May 6 2016
Sure, no problem |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by jakearchibald@chromium.org
, May 4 2016Labels: -OS-Mac OS-All