Make browserAction's menu contain _solely_ its own custom items
mtanalin at yandex.ru
Fri Oct 6 23:51:00 UTC 2017
Oh, thanks, Andrew.
As a temporary workaround, I could imagine left-clicking a pageAction button to show the menu that I would otherwise display via right-clicking the browserAction button.
And then the next question arises: how to associate a _regular_ (context-like) menu (not an HTML popup) with the pageAction button’s `command` event (_left_ click)?
07.10.2017, 02:36, "Andrew McKay" <amckay at mozilla.com>:
> You can't.
> You could file a bug to request that, but I'm pretty sure it won't go
> far. Users should be able to retain a standard interface to the
> toolbar buttons and be able to interact with them in a consistent way.
> On 6 October 2017 at 16:16, Marat Tanalin <mtanalin at yandex.ru> wrote:
>> Hello. How to make browserAction button’s context menu (opened via right click) contain _solely_ its own custom items and no any predefined items? Currently the menu also contains browser’s predefined items that have nothing to do with my extension.
>> Fwiw, I currently investigate ways to port my UsableHomeButton  extension to the WebExtensions API. The button’s context menu is a very important part (50%) of the extension’s functionality, and alien items are totally undesired there. I can’t use popup instead because pressing the button (via left click) is used for a different purpose (the first 50% of the extension’s functionality). Thanks.
>>  https://addons.mozilla.org/firefox/addon/usablehomebutton/
>> Dev-addons mailing list
>> Dev-addons at mozilla.org
More information about the Dev-addons