Closed
Bug 424317
Opened 17 years ago
Closed 17 years ago
Add-on Updates dialogue shown at startup has buttons in the wrong order/position
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b1
People
(Reporter: mozilla, Assigned: Natch)
References
Details
Attachments
(2 files, 3 obsolete files)
|
21.96 KB,
image/png
|
Details | |
|
5.62 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
When there is an update available for an add-on, Firefox advertises this at startup by showing a dialogue.
The buttons in this dialogue are arranged:
[Install Updates] [Show Information] [Skip]
On Gnome, this should be:
[Show Information] [Skip] [Install Updates]
because the default, confirming action is always at the far bottom-right.
Comment 1•17 years ago
|
||
Agreed - skip and install should be the cancel and OK equivalents at the bottom right, with show information at the left.
OS: Linux → All
Hardware: PC → All
Summary: Add-on Updates dialogue shown at startup has buttons in the wrong order/position on Gnome/Linux → Add-on Updates dialogue shown at startup has buttons in the wrong order/position
Updated•17 years ago
|
Flags: blocking-firefox3?
Comment 2•17 years ago
|
||
Not a blocker, but hopefully a quick fix is possible?
Flags: wanted-firefox3+
Flags: blocking-firefox3?
Flags: blocking-firefox3-
Updated•17 years ago
|
Product: Firefox → Toolkit
Updated•17 years ago
|
Whiteboard: [good first bug]
| Assignee | ||
Comment 3•17 years ago
|
||
If someone could tell me where to find this (under toolkit/extensions?) I'd be glad to give it a try.
Comment 4•17 years ago
|
||
(In reply to comment #3)
> If someone could tell me where to find this (under toolkit/extensions?)
A good way to find out where a dialog like that is implemented is to search for one of the strings, e.g.:
http://mxr.mozilla.org/mozilla-central/search?string=new+updates+available&find=toolkit
which leads to:
http://mxr.mozilla.org/mozilla-central/search?string=newUpdatesAvailableMsg
which leads to:
http://hg.mozilla.org/mozilla-central/index.cgi/annotate/43e89bd626d2/toolkit/mozapps/extensions/content/extensions.js#l1121
It's actually using a specific "view" of the normal addons manager, so this might be a bit of a pain to fix (since the buttons are shared across views).
| Assignee | ||
Comment 5•17 years ago
|
||
not setting review flags yet b/c i have no way of testing this, found similar code in other toolkit apps, is this the way to go (btw in non-gnome apps it displays fine, i.e. no different then it used to)?
| Assignee | ||
Comment 6•17 years ago
|
||
Comment on attachment 335670 [details] [diff] [review]
Would this work?-untested
still more work to do, e.g. the default button is still the old one even on gnome, easy to implement just wanted to get some feedback on this approach.
Comment 7•17 years ago
|
||
Ah yes I hadn't quite realised this was going to be platform specific. I guess a good way to start here would be to get feedback from the UX team on the correct ordering for all the buttons. Just come up with a suggestion for how you think the buttons should be arranged for the platforms. Once UX are happy I suspect the patch would be simplest done by just changing extensions.xul, commandBarBottom can be ordered differently on the different platform as necessary.
Comment 8•17 years ago
|
||
The correct button ordering per platform has already been settled in our dialog implementation, you can base the button ordering on that once you map the available actions to the "accept", "cancel", "extra1" and "extra2" semantics (perhaps you already have). You should be able to use the same ifdef there too (XP_UNIX instead of XP_GNOME).
http://hg.mozilla.org/mozilla-central/index.cgi/annotate/6abe7e4a2e59/toolkit/content/widgets/dialog.xml#l20
| Assignee | ||
Comment 9•17 years ago
|
||
* Uses XP_UNIX instead of XP_GNOME (I guess MACOSX doesn't also define XP_GNOME, or that the layout is the same for both).
* Mapped according (as best I could) to dialog.xml
disclosure == installFileButton
help == showUpdateInfoButton
extra (there's only one, I think) == checkUpdatesAllButton
spacer
cancel == skipDialogButton
accept == installUpdatesAllButton
The rest of the buttons are toggled when the above ones are hidden, so they remain in their respective places (the only one that's maybe a question is continueDialogButton, but I think it's in the right place, i.e. the right side of the bar).
Attachment #335670 -
Attachment is obsolete: true
Attachment #335798 -
Flags: review?(gavin.sharp)
| Assignee | ||
Comment 10•17 years ago
|
||
Messed around with the file so much I lost my bearings!
Here's the intended file.
Attachment #335798 -
Attachment is obsolete: true
Attachment #335805 -
Flags: review?(gavin.sharp)
Attachment #335798 -
Flags: review?(gavin.sharp)
Updated•17 years ago
|
Attachment #335805 -
Flags: review?(gavin.sharp) → review?(dtownsend)
Comment 11•17 years ago
|
||
Comment on attachment 335805 [details] [diff] [review]
Sorry this is really it!
I disagree with the mapping you have come up with for the buttons, but even then the patch you propose does not produce the mapping you suggest.
Here is the mapping that I think is correct:
accept = continue, installUpdateAll
cancel = skip
extra1 = checkUpdatesAll
extra2 = installFile
disclosure = showUpdateInfo, hideUpdateInfo, getMore
Let's see if that makes sense in all the views.
Attachment #335805 -
Flags: review?(dtownsend) → review-
| Assignee | ||
Comment 12•17 years ago
|
||
The reason I only changed the accept buttons is because the implementation of the buttons in extensions.xul doesn't follow anything in dialog.xml, including your definition, so I just changed what this bug was asking for and figured that might work.
Now that you say you want it all changed, should I change the regular (i.e. non-GNOME) layout as well? Either way would basically mean ifdefing _all_ the buttons for both platforms.
| Assignee | ||
Comment 13•17 years ago
|
||
Here is a patch for both layouts according to the mapping from comment 11.
Attachment #335805 -
Attachment is obsolete: true
Attachment #336684 -
Flags: review?(dtownsend)
Comment 14•17 years ago
|
||
Comment on attachment 336684 [details] [diff] [review]
For conformance with dialog.xml
I think mapping them all is the right way to go, it should hopefully make future decisions about where to put buttons simpler than trying to deal with the existing configurations
Attachment #336684 -
Flags: review?(dtownsend) → review+
Updated•17 years ago
|
Assignee: nobody → highmind63
Status: NEW → ASSIGNED
Whiteboard: [good first bug]
Comment 15•17 years ago
|
||
Landed, thanks for the patch.
http://hg.mozilla.org/mozilla-central/rev/72df909fdc15
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
You need to log in
before you can comment on or make changes to this bug.
Description
•