navigator.connection.type doesn't reflect the throttling in Network Panel
Reported by
the.sp...@gmail.com,
Feb 17 2017
|
||||
Issue descriptionUserAgent: 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
,
Feb 17 2017
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?
,
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.
,
Feb 20 2017
,
Dec 1 2017
|
||||
►
Sign in to add a comment |
||||
Comment 1 by ajha@chromium.org
, Feb 17 2017