Closed
Bug 1463002
Opened 6 years ago
Closed 6 years ago
Context menu items for "selection" do not appear for selected images
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: u538344, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Steps to reproduce:
I have an addon that registers a context menu like so:
chrome.contextMenus.create({
type: "normal",
id: contextMenuId,
title: "Copy selected links",
contexts: ["selection"],
documentUrlPatterns: ["*://*/*", "file:///*"]
}, onCreate);
This works fine on chrome and most of the time on firefox. The menu shows up whenever the user has selected any content on a page and clicks on or horizontally next to it (which I find oddly specific, but whatever).
Recently (since one or two firefox versions ago), the menu has stopped appearing in firefox when images are selected.
On this page for example: http://www.planetsuzy.org/t3924-p16-courteney-cox.html
Underneath the first post, select some of the names of users who've thanked the poster and click near it. The menu appears (first screenshot).
Select some of the images in the first post and do the same thing. The menu does not appear (second screenshot). It did in previous versions, it does in chrome, and it should if the relevant webextensions ( https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus/ContextType ) documentation is correct.
Updated•6 years ago
|
Component: General → Add-ons Manager
Product: Core → Toolkit
Updated•6 years ago
|
Component: Add-ons Manager → WebExtensions: General
Updated•6 years ago
|
Summary: Registered ContextMenu does not show when it should → Conext menu items for "selection" do not appear for selected images
Updated•6 years ago
|
Summary: Conext menu items for "selection" do not appear for selected images → Context menu items for "selection" do not appear for selected images
Updated•6 years ago
|
Flags: needinfo?(mixedpuppy)
Comment 2•6 years ago
|
||
Works for me on nightly.
chrome.contextMenus.create({
type: "normal",
id: "test-menu-selection",
title: "The Menu Works",
contexts: ["selection"],
documentUrlPatterns: ["*://*/*", "file:///*"]
}, () => {
console.log(`onCreated\n`);
});
chrome.contextMenus.onClicked.addListener((info,tab) => {
console.log(`listener: ${info.menuItemId}\n`);
});
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(mixedpuppy)
Resolution: --- → WORKSFORME
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•