New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 609081 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 588584
Owner:
Last visit > 30 days ago
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



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 description

UserAgent: 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
 
Components: -Platform>DevTools Blink>BackgroundSync Platform>DevTools>Network
Labels: -OS-Mac OS-All
Seems like background sync is incorrectly firing when "offline" is set in devtools, triggering the back-off.
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.
I think you are right. At least, that's what is done when I test it on smartphone, toggling Airplane mode.
Cc: durga.behera@chromium.org
Labels: Needs-Feedback M-52
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.

Comment 5 by alph@chromium.org, May 6 2016

Owner: allada@chromium.org
Labels: -Needs-Feedback
Mergedinto: 588584
Status: Duplicate (was: Unconfirmed)
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!
Sure, no problem

Sign in to add a comment