browserAction buttons should be possible without text
Categories
(Thunderbird :: Add-Ons: Extensions API, defect, P3)
Tracking
(thunderbird_esr78+ fixed, thunderbird84 fixed)
People
(Reporter: Fallen, Assigned: TbSync)
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
Fallen
:
review+
wsmwk
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
Thunderbird traditionally includes the text for toolbar buttons because there are so many and it might be difficult to keep track what icon means what. browerAction toolbar buttons are traditionally without text.
I think we should consider one of the following paths:
- Make browser action buttons not have text, even if the rest of the toolbar has it
- Allow setting an empty toolbar text (omitting
default_title
or usingdefault_title: ""
currently makes it the extension name)
For the second case this should also be reflected in documentation somewhere.
Current workaround: default_title: " "
Reporter | ||
Comment 1•5 years ago
|
||
I'm leaning towards (1) because with (2) the tooltip would be empty. A tooltip would still be nice.
Assignee | ||
Comment 2•5 years ago
|
||
A third and simple to implement option would be, to default to the current implementation only, if no icon is specified. As soon as an icon is specified, the text could be left out, as the icon itself will be enough to identify the button.
But in general, I think it is not a good idea to miss-use default_title
(which is specified to set the tool-tip). In an ideal world, there should be a dedicated manifest entry for the label of the button.
Assignee | ||
Comment 3•5 years ago
|
||
As this seems to be burried in ToolbarButtonAPI
, a change here will probably affect
- browserAction
- composerAction
- messageDisplayAction
It does not look to complicated, but it has to be decided, how this shall be fixed:
(1) Make browser action buttons not have text, even if the rest of the toolbar has it
(2) Allow setting an empty toolbar text
(3) Introduce default_label
and use that for the button label
Looking at the code, using the image as a switch is harder, so I no longer suggest that.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Reporter | ||
Comment 5•4 years ago
|
||
Comment on attachment 9189456 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions
This looks fine to me, thank you! A few things to follow up on:
- Can you check what happens if you add this property to a Firefox extension? I'm wondering if it will just warn or error out.
- Let's make sure we have documentation about this, noting that this is specific to Thunderbird.
Assignee | ||
Comment 6•4 years ago
|
||
Thanks for that fast review!
For documentation, we are independent now. We have this:
https://developer.thunderbird.net/add-ons/mailextensions/supported-manifest-keys
And that links browser_action
to our own API doc, which is generated from the source. So the new thing will show up there as soon as it hits c-c and Geoff re-runs the source-to-doc script.
In Firefox, this produces warnings about unsupported entries, but runs.
- Do you want me to add a "only supported in Thunderbird" remark to the scheme? We have not done that for any of our own APIs. But this is special, as we override an existing one...
- I would like to see this in Beta and TB78. Are you ok with that?
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/72756ab0bf5c
Add independent label to toolbar actions. r=Fallen
Reporter | ||
Comment 8•4 years ago
|
||
(In reply to John Bieling (:TbSync) from comment #6)
Thanks for that fast review!
For documentation, we are independent now. We have this:
https://developer.thunderbird.net/add-ons/mailextensions/supported-manifest-keysAnd that links
browser_action
to our own API doc, which is generated from the source. So the new thing will show up there as soon as it hits c-c and Geoff re-runs the source-to-doc script.In Firefox, this produces warnings about unsupported entries, but runs.
- Do you want me to add a "only supported in Thunderbird" remark to the scheme? We have not done that for any of our own APIs. But this is special, as we override an existing one...
Yeah some sort of tag would be good.
- I would like to see this in Beta and TB78. Are you ok with that?
Uplifts are usually not my decision, but the impact of this patch may be minimal enough that we can backport so I'd be ok with it.
Assignee | ||
Comment 9•4 years ago
|
||
Assignee | ||
Comment 10•4 years ago
|
||
Comment on attachment 9189456 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions
[Approval Request Comment]
User impact if declined:
ESR will not benefit from this new feature
Testing completed (on c-c, etc.):
B-C: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=a23b810e79e2151d6427905e3eb9b13bde3bed92
Risk to taking this patch (and alternatives if risky):
I hope none.
Comment 11•4 years ago
|
||
Comment on attachment 9189456 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions
[Triage Comment]
Approved for beta
Comment 12•4 years ago
|
||
bugherder uplift |
Thunderbird 84.0b3
https://hg.mozilla.org/releases/comm-beta/rev/ed1e6258e0f5
Comment 13•4 years ago
|
||
Comment on attachment 9189456 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions
[Triage Comment]
Approved for esr78
Comment 14•4 years ago
|
||
Comment on attachment 9189456 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions
This doesn't apply on c-esr78. The toolbar rules that are being changed in messenger.css are not even in that file.
Assignee | ||
Comment 15•4 years ago
|
||
Try run with updated patch for esr78:
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=9acd1a56251a5755bd12a87276bbe174ffe59c30
Assignee | ||
Comment 16•4 years ago
|
||
Assignee | ||
Comment 17•4 years ago
|
||
Comment on attachment 9192937 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions_esr78.patch
Patch for ESR78 looks good on try. Too late?
Comment 18•4 years ago
|
||
(In reply to John Bieling (:TbSync) from comment #17)
Comment on attachment 9192937 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions_esr78.patchPatch for ESR78 looks good on try. Too late?
I've got no problem with running another build to pick this up. Wayne, any objection?
Comment 19•4 years ago
|
||
tl;dr I would rather ask this question, is uplifting in 78.6.1 in January reasonable?
Building is cheap. So I ask for other reasons: foremost, as a general rule we want to rebuild/take late uplifts only for items that cannot reasonably be delayed (unless it is a ride along), we'd rather not have to retest, bug is not a regression, my impression is this is not a serious problem, and ...
(In reply to John Bieling (:TbSync) from comment #10)
Comment on attachment 9189456 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions[Approval Request Comment]
User impact if declined:
ESR will not benefit from this new feature
Will specific, important add-ons be blocked and users suffer if the uplift doesn't happen until 78.6.1?
Testing completed (on c-c, etc.):
B-C: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=a23b810e79e2151d6427905e3eb9b13bde3bed92Risk to taking this patch (and alternatives if risky):
I hope none.
Agreed. But this touches themes, in a trivial way perhaps, but themes have been problematic for us.
Welcome feedback.
Assignee | ||
Comment 20•4 years ago
|
||
Wayne is probably right. I was just giving it a shoot, as I of course want this in ESR as fast as possible. But I do not want to cause an extra test round. It was me who was too late and I signaled Wayne already, that delaying the uplift is fine. It was just too tempting to request it getting uplifted after I was able to fix the patch before shipping.
As this is a new feature, no add-on is using it (have not seen this in review) and so no add-on is blocked.
Let's postpone this. Sorry for the noise. Will do better next time.
Comment 21•4 years ago
|
||
Assignee | ||
Comment 22•4 years ago
|
||
use async: "callback"
instead of async: true
Updated•4 years ago
|
Updated•4 years ago
|
Comment 23•4 years ago
|
||
Comment on attachment 9194386 [details] [diff] [review]
bug1583478_add_independent_label_to_toolbar_actions_esr78.patch
[Triage Comment]
Approved for esr78
Comment 24•4 years ago
|
||
bugherder uplift |
Thunderbird 78.6.1:
https://hg.mozilla.org/releases/comm-esr78/rev/346c441c3a55
Description
•