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

Issue 786874 link

Starred by 0 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

chrome on android too eager to declare localhost pages offline

Reported by pdk...@gmail.com, Nov 20 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.137 Safari/537.36

Steps to reproduce the problem:
(Ignore the version reported in the header.)

Chrome: 63.0.3239.57
Android: M

1. In your desktop Chrome, go to chrome://inspect and enable port forwarding.
2. Run a web server on the port.
3. Disable Wi-Fi on your Android device.
4. Connect the device through USB, so it's listed in chrome://inspect.

That's the set-up, now the problem. (All steps onward in mobile Chrome.)

5. Load the page, perhaps at localhost:8080.
6. Move away from the page and Chrome, such as by opening a different app.
7. Return to the page, and refresh it.

What is the expected behavior?
The page loads as normal.

What went wrong?
The page is refreshed but not reloaded. It is instead reported as Offline. It is now impossible to reload the page, unless it is opened in a new tab.

Did this work before? N/A 

Chrome version: 57.0.2987.137  Channel: stable
OS Version: Ubuntu 14.04
Flash Version:
 
Labels: -OS-Linux Triaged-ET OS-Android
The issue seems to be related to OS-Android. Hence, adding appropriate OS labels.
Labels: -Triaged-ET Needs-triage-Mobile
Cc: msrchandra@chromium.org
Labels: Triaged-Mobile Needs-Feedback
@pdknsk -- Thank You for the report.
Could you please provide us a screen cast for better understanding of the issue which would help to triage the issue further.
Thanks in Advance.

Comment 4 by pdk...@gmail.com, Nov 23 2017

​I really can't.​
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 23 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "msrchandra@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: TE-NeedsTriageHelp
Could some one from Dev Tools please look into the issue and provide an update.
Thanks in Advance.
Owner: eostroukhov@chromium.org
Status: Assigned (was: Unconfirmed)
> 6. Move away from the page and Chrome, such as by opening a different app.

It is likely that chrome is being kicked out of memory and newly connected one does not pick the tethering setting. Do you keep your chrome://inspect page open? If not, we are unlikely to restore these settings. If you keep it alive, that's a bug on our side

Comment 8 by pdk...@gmail.com, Nov 28 2017

​Yes, the page stays open.
Components: -Platform>DevTools UI>Browser>Offline
Labels: -TE-NeedsTriageHelp M-64
Adding appropriate component and tagging with a milestone.

Comment 10 by pdk...@gmail.com, Dec 11 2017

I've also noticed this in console, which is probably related.

> Slow network is detected. Fallback font will be used while loading: http://localhost:8080/fonts/s400R.ttf
Cc: aboss@chromium.org dim...@chromium.org fgor...@chromium.org
Labels: -Pri-2 Pri-3
From the Offline Pages perspective:
This works as intended currently, but I agree we could rethink behavior of offline pages on the localhost.

We'll definitely not touch it for M64, but I am sending this to out PM.

Longer explanation:
Because the network connection is not present (or is detected to be very slow), the tab is falling back to a cached offline copy, which is only available for the tab that saved it. That explain why the behavior affects the old tab, but not the newly open one (the cached copy is not available there).

Adding Amanda to CC to take a highlight the issue for her, once she is back from travels.


Owner: hhli@chromium.org
Owner: fgor...@chromium.org
Reassign per comment #11 above
Cc: -aboss@chromium.org -fgor...@chromium.org
Owner: jianli@chromium.org
Jian, could you take a look?

Sign in to add a comment