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

Issue 693322 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

navigator.connection.type doesn't reflect the throttling in Network Panel

Reported by the.sp...@gmail.com, Feb 17 2017

Issue description

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

Steps to reproduce the problem:
1. Open DevTools, Network Panel, change Throttling to 3G
2. Check navigator.connection.type on console (should say "cellular")
3. Close and open DevTools again
4. Throttling is reset to "no throttling" but navigation.connection.type is still "cellular"

What is the expected behavior?
connection type should have been reset and show "unkown" or the appropriate string

What went wrong?
The UI is reset but the value in navigator.connection is not

Did this work before? N/A 

Chrome version: 56.0.2924.87  Channel: stable
OS Version: OS X 10.12.3
Flash Version: navigator.connection.type doesn't reflect the throttling in the Network Panel

Video showing the issue https://www.youtube.com/watch?v=XUc8s8e0sG8

 

Comment 1 by ajha@chromium.org, Feb 17 2017

Labels: Needs-Triage-M56

Comment 2 by l...@chromium.org, Feb 17 2017

Owner: allada@chromium.org
Thanks for the report.  I think we should be reading the navigator.connection.type and updating the state of the throttling dropdown when DevTools is loaded.

navigator.connection isn't defined for me, is there some chrome flag to be enabled?

allada@, could you please take a look?

Comment 3 by the.sp...@gmail.com, Feb 17 2017

No problem!

Could it be that navigator.connection is disabled for google devices? I have it on my personal laptop and phone, but not on my google laptop.

Also, i think the desired effect of closing and opening DevTools should be reset the throttling (to no throttling). There were many times one would keep working without realising it was throttled.
Labels: -Needs-Triage-M56 M-58
Status: Archived (was: Unconfirmed)

Sign in to add a comment