Closed
Bug 1322488
Opened 8 years ago
Closed 8 years ago
WebExtensions: Add ability to handle context menu item based on Element.namespaceURI
Categories
(WebExtensions :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1215376
People
(Reporter: kazz, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 Build ID: 20161207004003 Expected results: In contextMenus.create() / update(), I think there should be a property based on Element.namespaceURI similar to documentUrlPatterns and targetUrlPatterns. Or, adding "svg" and "mathml" to contextMenus.ContextType. You can write SVG and MathML inline in HTML5. Current contextMenus API does not have a way to detect if it was clicked on an SVG / MathML element when context menu is displayed.
Updated•8 years ago
|
Severity: normal → enhancement
Component: General → WebExtensions: General
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•7 years ago
|
||
It looks like bug 1215376 is about live update of the context menu item properties. I need context menu item that only appears in SVG/MathML context. Something like: contextMenus.create({ contexts: ["svg"], });
Flags: needinfo?(kmaglione+bmo)
Updated•6 years ago
|
Product: Toolkit → WebExtensions
Updated•6 years ago
|
Flags: needinfo?(kmaglione+bmo)
You need to log in
before you can comment on or make changes to this bug.
Description
•