New issue
Advanced search Search tips

Issue 772133 link

Starred by 7 users

Issue metadata

Status: Duplicate
Merged: issue 749884
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Resources are being served in offline mode

Reported by davidssc...@gmail.com, Oct 5 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
1. Open a web page & dev tools
2. Select "offline" mode in Network or Application > Service Workers
3. Navigate within the site - resources are still served despite "offline mode"

What is the expected behavior?
In offline mode, resources should not be served (assuming there are no active service workers)

What went wrong?
Offline mode is not simulating being offline - resources are still served.

Did this work before? Yes 60

Chrome version: 61.0.3163.100  Channel: stable
OS Version: OS X 10.12.6
Flash Version: Shockwave Flash 27.0 r0
 

Comment 1 Deleted

Comment 2 by whimm...@gmail.com, Oct 5 2017

I have the same issue on Mac in stable Chrome (61.0.3163.100), but offline mode in DevTools seems to be working fine when I try it on Chrome Canary on Mac (63.0.3233.0) and on Chrome Stable on Linux CentOS (61.0.3163.100).

Works on:
Chrome Canary on Mac
Chrome Version: 63.0.3233.0 Channel: canary
OS Version OS X 10.12.6

Stable Chrome on Linux CentOS
Chrome Version: 61.0.3163.100 Channel: stable
OS Version: 7.3.1611
Cc: caseq@chromium.org
Labels: -Pri-2 ReleaseBlock-Stable Pri-1
Owner: horo@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 4 by whimm...@gmail.com, Oct 6 2017

To be more specific, only some of the assets are still retrieved while in offline mode, like the HTML files. Many are still blocked.

Comment 5 by horo@chromium.org, Oct 6 2017

Is this issue related to Service Worker?

Comment 6 by whimm...@gmail.com, Oct 6 2017

This issue affects service workers, but doesn't seem to be caused by them. Try enabling offline mode on a new tab, then search the web normally even on websites without service workers. While some assets won't load, you can still access most of the content.

On Linux and Mac Canary, the same behavior just results in an "There is no Internet connection" page.

Service workers seem to be able to access resources while in offline mode in a similar way, but that doesn't seem to be the root cause?

Comment 7 by horo@chromium.org, Oct 6 2017

Components: Blink>ServiceWorker
What kind of content is loaded?
Could you please attach the screen shot of DevTools Network tab?

Isn't the service worker serving the content from CacheStorage?

Comment 8 by horo@chromium.org, Oct 6 2017

What happens if you disable chrome://flags/#browser-side-navigation?

Comment 9 by horo@chromium.org, Oct 6 2017

Labels: Needs-Feedback
Disabling browser side navigation fixes the issue on Chrome Stable on Mac (61.0.3163.100), showing the correct behavior when in offline mode. Great!

For comparison, when browser side navigation is explicitly set to enabled on Chrome Canary on Mac (63.0.3233.0), offline mode still has the correct behavior.

I included the screenshot of the incorrect offline mode behavior in Chrome Stable on Mac (61.0.3163.100) with browser side navigation set to enabled/default for reference. Note the 200 response for the HTML. I could also post offline mode now working correctly with browser side navigation set to disabled, if that would be helpful.

Thanks for your help so far!

offline-mode-not-working-in-chrome-61-for-mac-browser-side-navigation-set-to-default.png
509 KB View Download

Comment 11 by horo@chromium.org, Oct 6 2017

Cc: arthurso...@chromium.org horo@chromium.org
Components: -Blink>ServiceWorker
Labels: Proj-PlzNavigate
Owner: clamy@chromium.org
Thank you. It is an issue of PlzNavigate (browser side navigation).

I can reproduce the bug in 61.0.3163.100.
But I can't in 62.0.3202.45.

I think it is fixed in M62.
Great! We'll have our team try to see if this fix in 62.0.3202.45 extends out to service workers and update this issue with our findings.

Comment 13 by horo@chromium.org, Oct 6 2017

Mergedinto: 749884
Status: Duplicate (was: Assigned)
I bisected.
This issue was solved by 25dc5157098d393d8ed7263a8780c3f2471840ae which landed in 62.0.3179.0.

Hello again, 

I've just re-tested in Chrome 62.0.3202.75 and am still encountering errors, although they are different. 

General web navigations fail in offline mode, as expected, but network requests made from within a service worker are successful. 

So for example, in offline mode, if I navigate to a resource and the service worker intercepts that request and replaces it with its own request to the network (not the cache), then it is successful. 

As an aside, it doesn't seem to matter if the requested resources are cached or not. 

Comment 15 by horo@chromium.org, Nov 2 2017

The bug of subresource loading was fixed in 63.0.3237.0.
So please use M63.

See  crbug.com/769972 .

Sign in to add a comment