Extending Devtools elements panel context menu.
Reported by
sury...@gmail.com,
Sep 7 2016
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36 Steps to reproduce the problem: 1. open chrome browser Devtools and right click on any html node in the elements panel. notice the context menu's such as 'add attribute', 'edit as html' etc.. 2. look at the chrome API to create elements panel https://developer.chrome.com/extensions/devtools_panels#type-ElementsPanel 3. There is no API to extend this context menu. What is the expected behavior? Our extension needs a way to customize elements panel context menu. What went wrong? not able to customize elements panel context menu. Did this work before? N/A Chrome version: 53.0.2785.89 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 22.0 r0 Firebug supports extending, as we are moving to chrome this is very much needed for us.
,
Sep 12 2016
Could you share more details on what you'd like to do with your extension? Maybe we have some ideas that could work now.
,
Sep 13 2016
I want to be able to get the XPATH of the selected node and do some process in my extension. When user right clicks on the node, I give him options of adding/remove xpath of the currently selected node. The same process I used with Firebug in Firefox. I am porting my plugin to Chrome now. Moreover, I did not find any API to retrieve xpath of the selected node. Let me know if there are way to do this?
,
Oct 17 2016
We'll keep this in mind when considering future extensions to the protocol. In the meantime, could you port your extension by adding a DevTools sidebar pane and asking the user to paste in an XPATH manually (copied by right-clicking on an element) and then do the processing in the sidebar pane?
,
Oct 18 2016
Thank you. Do you know when I can expect this is implemented in Chrome? any rough ETA?
,
Sep 21 2017
,
Dec 5
Archiving due to low priority. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by ajha@chromium.org
, Sep 9 2016Labels: -Type-Bug M-55 OS-Linux OS-Mac Type-Feature
Status: Untriaged (was: Unconfirmed)