Add type option to action buttons to add support for menu buttons
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(thunderbird115? fixed)
People
(Reporter: john, Assigned: john)
References
Details
Attachments
(5 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
|
890 bytes,
application/x-zip-compressed
|
Details | |
|
904 bytes,
application/x-zip-compressed
|
Details |
To make action buttons more useful, add a type option to the manifest. Per default this is "button", but can be set to "menu" or "menubutton". This cannot be changed after the button has been created.
For "menu" and "menubutton" the action button will have drop-down-selector which opens a menu, which is accessible from the menus API via the *_action_menu context.
If "menu" is selected, the onClicked event is disabled and a click on the button will open the menu. This also means no popup support for this type.
| Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/6730027e6753
Add type option to action buttons to add support for menu buttons. r=darktrojan
Updated•4 years ago
|
Comment 4•4 years ago
•
|
||
Sorry, I pulled this out. The test is broken on all platforms, and times out for a different reason on macOS.
Back out:
https://hg.mozilla.org/comm-central/rev/41797fb66229aec9494966f0eec75e3c8e7425a7
| Assignee | ||
Comment 5•2 years ago
|
||
Re-worked this for the "menu" option and adapted it for changes to the unified toolbar. When the "menu-button" option is officially supported by the unified toolbar, we are going to add that option here as well.
Updated•2 years ago
|
| Assignee | ||
Comment 6•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3144c38dd2b5
Add support the 'menu' typed action buttons. r=darktrojan,freaktechnik
| Assignee | ||
Comment 8•2 years ago
|
||
Comment on attachment 9338580 [details]
Bug 1705867 - Add support the 'menu' typed action buttons. r=darktrojan,aleca
[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Missing the helpful option for add-on developers to replace multiple legacy toolbar buttons into a single menu based action button in the new unified toolbar will make it more difficult for developers to get their add-on ready for 115.
Testing completed (on c-c, etc.):
Just landed, but tested thoroughly.
Risk to taking this patch (and alternatives if risky):
None that I am aware of.
Comment 9•2 years ago
|
||
Comment on attachment 9338580 [details]
Bug 1705867 - Add support the 'menu' typed action buttons. r=darktrojan,aleca
[Triage Comment]
Approved for beta
Comment 10•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 115.0b3:
https://hg.mozilla.org/releases/comm-beta/rev/882cd23542b5
| Assignee | ||
Comment 11•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 12•2 years ago
|
||
Comment on attachment 9340154 [details]
Bug 1705867 - Fix wrong menu entries of menu typed action buttons if multiple extensions and multiple entries are used. r=#thunderbird-reviewers
[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
During development of this feature, I simply did not test it with multiple extensions being installed and each extension adding multiple entries. It turned out to be badly broken (duplication of entries and added to the wrong buttons). Without this fix, the feature is broken and not useable. I will add dedicated tests for this after my PTO.
Testing completed (on c-c, etc.):
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=c94dedfd4248cbde943f667775ce2066d396d125
Risk to taking this patch (and alternatives if risky):
Try run looks good.
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Comment on attachment 9340154 [details]
Bug 1705867 - Fix wrong menu entries of menu typed action buttons if multiple extensions and multiple entries are used. r=#thunderbird-reviewers
[Triage Comment]
Approved for beta
But we should test the beta. Does this only affect add-ons that attempt to use the new feature?
| Assignee | ||
Comment 14•2 years ago
•
|
||
Yes it only affects add-ons which use the new feature. Adding two test extensions. Install both to see the breakage without the fix.
| Assignee | ||
Comment 15•2 years ago
|
||
| Assignee | ||
Comment 16•2 years ago
|
||
Comment 17•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 115.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/d97132902390
Updated•2 years ago
|
Comment 18•2 years ago
|
||
Pushed by elizabeth@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/3a11b65072b5
Fix wrong menu entries of menu typed action buttons if multiple extensions and multiple entries are used. r=mkmelin
Description
•