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

Issue 648208 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 593320
Owner:
Last visit > 30 days ago
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Service Worker is unaffected by setting DevTools' Network Throttling

Project Member Reported by aerotwist@chromium.org, Sep 19 2016

Issue description

If I switch on Network Throttling in DevTools, and set it to Offline (as Lighthouse does), and I have a registered Service Worker with the following code:

self.onfetch = evt => {
  evt.respondWith(fetch(evt.request));
};

The fetch seems to succeed (assuming the device has a connection). This results in an uncanny valley, where the page is sort-of offline, but the SW isn't. 

While the solution is to disable connectivity at the OS level, it does make the 'offline' setting (or any other throttling) a misnomer if you have a SW. It would be great if either the UI indicated the scope of the throttling, or, if possible, we extended the throttling to cover SW-based fetches too.
 
Owner: allada@chromium.org
Status: Assigned (was: Untriaged)
Mergedinto: 593320
Status: Duplicate (was: Assigned)

Sign in to add a comment