Porting to Webextension - selector on browser.contextMenus

I would like to create a contextMenu based on selectors, but didn’t found how, or if is it possible at the moment.
In legacy extensions I was able to do with the command:

context: contextMenu.SelectorContext("div._ovg3g"),

And I’ll need a similar feature to be able to port my addons to webextensions.
https://addons.mozilla.org/en-US/firefox/addon/google-yandex-reverse/?src=search

Thank you

There is targetUrlPatterns but I haven’t seen a CSS selector based one.

I opened https://bugzilla.mozilla.org/show_bug.cgi?id=1357651

1 Like

Super. hope they solve it fast.
Sadly they are already promoting addons using webextensions and we still don’t have the ability to port ours.

still no replacement for the old style selectors?