New issue
Advanced search Search tips

Issue 825443 link

Starred by 6 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Feature



Sign in to add a comment

web extension browser.contextMenu.create() does not allow "bookmark" context

Reported by nyet...@gmail.com, Mar 24 2018

Issue description

Chrome Version       : 65.0.3325.181
OS Version: 10.0

browser.contextMenus.create({
    id: "item-id",
    title: "Item Title",
    contexts: ["bookmark"],     // does not work in chrome, of course.
});


What is the expected result?

Creation of "Item Title" menu time in bookmark context menu

What happens instead of that?

Uncaught Error: Invalid value for argument 1. Property 'contexts.0': Value must be one of: [all, page, frame, selection, link, editable, image, video, audio, launcher, browser_action, page_action].
    at validate (extensions::schemaUtils:34)
    at Object.normalizeArgumentsAndValidate (extensions::schemaUtils:119)
    at Object.<anonymous> (extensions::binding:363)

UserAgentString: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Mozilla supports it:

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus/ContextType



 

Comment 1 by ajha@chromium.org, Mar 26 2018

Components: Platform>Extensions
Labels: Needs-Triage-M65
Cc: susan.boorgula@chromium.org
Labels: Needs-Feedback Triaged-ET
nyetliu@ Thanks for the issue.

Request you to provide an extension where this issue can be reproducible which will help in further triaging.

Thanks..

Comment 3 by woxxom@gmail.com, Mar 26 2018

susan.boorgula@, this is a feature request for extensions API. There are no existing extensions for Chrome since the feature isn't implemented yet.
Cc: pbomm...@chromium.org rdevlin....@chromium.org
Labels: -Type-Bug Type-Feature
Labels: M-69 Target-69 FoundIn-69
Status: Untriaged (was: Unconfirmed)
As per comment#3 & 4, this issue seems to be Feature request, hence marking it as Untriaged.

Thanks!
Labels: -Needs-Feedback -M-69 -Needs-Triage-M65 -Target-69
Status: Available (was: Untriaged)
This sounds reasonable to me, but we're unlikely to get to it in the near future.  If anyone wanted to volunteer for it, the instructions for proposing a new extension API are here [1], and we're happy to provide guidance.

[1] https://chromium.googlesource.com/chromium/src/+/master/extensions/docs/new_api_proposal.md

Sign in to add a comment