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

Issue 644760 link

Starred by 5 users

Issue metadata

Status: Archived
Owner:
Closed: Dec 5
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Feature



Sign in to add a comment

Extending Devtools elements panel context menu.

Reported by sury...@gmail.com, Sep 7 2016

Issue description

UserAgent: 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.
 
Elements panel right click.png
49.8 KB View Download

Comment 1 by ajha@chromium.org, Sep 9 2016

Cc: ajha@chromium.org
Labels: -Type-Bug M-55 OS-Linux OS-Mac Type-Feature
Status: Untriaged (was: Unconfirmed)
Marking this as Untriaged and as a Feature request for more inputs from the Devtool team.
Cc: caseq@chromium.org seththompson@chromium.org
Status: Available (was: Untriaged)
Could you share more details on what you'd like to do with your extension? Maybe we have some ideas that could work now.

Comment 3 by sury...@gmail.com, 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?


Owner: seththompson@chromium.org
Status: Assigned (was: Available)
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?

Comment 5 by sury...@gmail.com, Oct 18 2016

Thank you. Do you know when I can expect this is implemented in Chrome? any rough ETA?
Owner: caseq@chromium.org
Status: Archived (was: Assigned)
Archiving due to low priority.

Sign in to add a comment