Heads up: breaking changes to context menus API

6 views
Skip to first unread message

Antony Sargent

unread,
Jul 15, 2010, 7:07:18 PM7/15/10
to Chromium-extensions
I just wanted to give a heads up that I've been landing some breaking changes to the experimental context menus API, and these will be showing up in dev builds soon. 

Changes that are already committed, and will be in the next dev build:
-enum-type values now lowercase, e.g. 'page' instead of 'PAGE'
-name now plural (contextMenus instead contextMenu)
-stopped firing onclick handlers for parent items when a child item is clicked
-removed the 'enabledContexts' property, will provide a better mechanism later
-return the id of new items synchronously from contextMenus.create

Changes that will be committed soon:
-can specify url patterns for only matching certain document and target (src/href) urls
-can specify tab ids for only matching on certain tabs


Here is the tracking bug with the full details: http://crbug.com/48198

Documentation for the bleeding edge trunk is here, and once the next dev build rolls out you can see the dev documentation here (this link won't work until we push the next dev build).


Ankit Ahuja

unread,
Jul 16, 2010, 1:21:34 PM7/16/10
to Antony Sargent, Chromium-extensions
I was just trying out the experimental context menu API. It looks like the dev documentation link you referred to (here) is already live and the changes haven't been pushed to the dev channel yet ( I'm still having to use chrome.experimental.contextMenu )

I'm on 6.0.458.1 dev (Mac).


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.

Antony Sargent

unread,
Jul 16, 2010, 3:04:21 PM7/16/10
to Ankit Ahuja, Chromium-extensions
Looks like the dev channel version 6.0.466.0 for Windows & Linux was released sometime last night or this morning. I'm not sure why Mac is lagging behind, but you can always check this page for the current versions:
Reply all
Reply to author
Forward
0 new messages