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)

61 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: u538344, Unassigned)

Details

Attachments

(2 files)

Attached image menu on text/links
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.
Attached image no menu on images
second screenshot
Component: General → Add-ons Manager
Product: Core → Toolkit
Component: Add-ons Manager → WebExtensions: General
Summary: Registered ContextMenu does not show when it should → Conext menu items for "selection" do not appear for selected images
Summary: Conext menu items for "selection" do not appear for selected images → Context menu items for "selection" do not appear for selected images
Flags: needinfo?(mixedpuppy)
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
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: