Issue metadata
Sign in to add a comment
|
The /json/list or /json API does not give the active tab as the first element for chrome 55+ over adb
Reported by
yohanmar...@gmail.com,
Feb 16 2017
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.37 Safari/537.36 Steps to reproduce the problem: 1. Make sure the chrome version on android is 55+ 2. Connect the device to the machine and do the adb port forwarding (eg:- adb forward tcp:8000 localabstract:chrome_devtools_remote) 3. Now navigate to localhost:8000/json or localhost:8000/json/list 4. Open multiple tabs on the device and keep switching the tabs. What is the expected behavior? The list should show the active tab as the first element in the list (ie. it should sort the list by last activity time). What went wrong? The list is not sorted by the activity time and as a consequence, the active page does not appear as the first element in the list. Did this work before? N/A Chrome version: 57.0.2987.37 Channel: n/a OS Version: OS X 10.11.4 Flash Version: Shockwave Flash 24.0 r0 Moreover, there is no way to check which page is active from the list!
,
Feb 20 2017
Comment #1: I am afraid that was not the behavior till chrome 55 released for android. Till 54, it always showed the list as per the activity time. Moreover, I tested on chrome 58 Dev on android, and it gave the results in last used(activity time) order. Hence, the ordering logic changed in version 55 up to 57 but it is back to the activity time sorting logic in chrome 58 Dev. Also, I found this line of code which, I believe, handles the sorting of the list. https://cs.chromium.org/chromium/src/content/browser/devtools/devtools_http_handler.cc?l=615 My use case is pretty simple. I need to fetch current active tab and make the WS/WSS connection. This should also work when tabs are switched.
,
Feb 21 2017
Indeed, we regressed this behavior. Fortunately, it was fixed recently (see issue 658288 ). Thank you for filing the bug!
,
Feb 21 2017
Whoops, I was wrong! Thanks for finding the duplicate bug dgozman@ |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by l...@chromium.org
, Feb 18 2017Owner: dgozman@chromium.org
Status: Assigned (was: Unconfirmed)