Use description and visual sorting for "json/list" entries
Categories
(Remote Protocol :: CDP, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: kilimra, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Steps to reproduce:
Using Chrome's WebDriver:: http://127.0.0.1:9222/json/list, it's easy to find its current tag - the first item of type "page".
But in firefox, I can't tell which tag is the current tag. Is it possible to add an identifier to the current tag?
For example, use the "description" item to identify it
[ {
"description": "current tag",
"devtoolsFrontendUrl": null,
"faviconUrl": "",
"id": "ecbf9028-676a-1b40-8596-a5edc0e2875b",
"type": "page",
"url": "https://www.mozilla.org/en-US/",
"browsingContextId": 29,
"webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/ecbf9028-676a-1b40-8596-a5edc0e2875b"
} ]
Another problem is the way the list is arranged.
The current arrangement is based on the order in which the tags were created, but this is almost useless.
What we really need is to sort the list according to the real position of the current tag. This way we can easily implement "close right tab|close left tab" with this data.
Expected results:
The remote call can get the current tab and sort it according to the tab position.
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Hi,
I´m not exactly sure on which component this should be placed but I think Testing > Marionette is a good place to start?
Please move it to a more suitable component if its not the correct one.
Thanks
Comment 2•3 years ago
|
||
This is not Marionette but CDP given that WebDriver does not support the /json/list
HTTP end-point.
Specifically the related code can be found at:
https://searchfox.org/mozilla-central/rev/468a65168dd0bc3c7d602211a566c16e66416cce/remote/cdp/targets/TargetList.jsm
Sadly this will not be on our priority list, but I'm happy to accept patches or mentor this bug in case it's important to have.
Updated•3 years ago
|
Comment 3•1 year ago
|
||
This is mostly styling which we are not going to fix for the partial CDP implementation.
Description
•