Closed
Bug 621042
Opened 15 years ago
Closed 14 years ago
Advanced Account Settings should mention account name
Categories
(MailNews Core :: Account Manager, defect)
MailNews Core
Account Manager
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 10.0
People
(Reporter: mnyromyr, Assigned: ewong)
References
Details
Attachments
(1 file, 4 obsolete files)
(Spinoff of bug 46688.)
Open account settings and go to "Server Settings" panel of a pop/imap account. Click "Advanced...".
The resulting dialog doesn't mention which account's settings you touch, but it should, probably in the window title or a group box frame.
![]() |
Assignee | |
Updated•14 years ago
|
Assignee: nobody → ewong
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 1•14 years ago
|
||
Attachment #540694 -
Flags: review?(iann_bugzilla)
Comment on attachment 540694 [details] [diff] [review]
Added account Name to the title of the Advanced Account Settings dialog. (v1)
>+++ b/mailnews/base/prefs/content/am-server-advanced.js
>+ var stringBundle = document.getElementById("bundle_prefs");
>+ var enumer = stringBundle.stringBundle.getSimpleEnumeration();
>+ while (enumer.hasMoreElements())
>+ {
>+ var stringName = enumer.getNext();
>+ }
Not sure why you are doing this enumer section.
>+ var msg = stringBundle.getFormattedString("forAccount",
>+ [prettyName]);
Without the enumer section you should be able to inline the stringBundle bit with this.
>+
>+ window.document.title = msg;
As it stands there is not enough space in the title bar to have the full prettyName if the prettyName happens to be longer than 12 characters (if it is the email address for example). Either need to put it somewhere other than the title or truncate it in the title.
If it is in the title then you can just use document.title no need for the window bit.
>+++ b/mailnews/base/prefs/content/am-server.js
>+ for (var accountid in parent.accountArray)
>+ {
>+ var account = parent.accountArray[accountid];
>+ }
Again not sure what this section is about, what is wrong with using gServer at this point?
>+ serverSettings.serverPrettyName = account.server.prettyName;
Why not just have serverSettings.prettyName ?
r-
This is outside scope of this bug (so probably needs a new one) but am-server-advanced.js is a bit of a strange file anyway. There are variables in there that:
* appear to be no longer used.
* have global names (of the form "gFoo") but are declared and used within a single function.
* are declared globally but only appear to be used in one function, so should not have a global form name either.
Attachment #540694 -
Flags: review?(iann_bugzilla) → review-
![]() |
Assignee | |
Comment 3•14 years ago
|
||
Attachment #540694 -
Attachment is obsolete: true
Attachment #540753 -
Flags: review?(iann_bugzilla)
![]() |
Assignee | |
Updated•14 years ago
|
Attachment #540753 -
Flags: review?(iann_bugzilla)
![]() |
Assignee | |
Comment 4•14 years ago
|
||
Attachment #540753 -
Attachment is obsolete: true
Attachment #540756 -
Flags: review?(iann_bugzilla)
Comment on attachment 540756 [details] [diff] [review]
Added account name to Advanced Account Settings dialog. (v3)
>+++ b/mailnews/base/prefs/content/am-server-advanced.js
>+ var prettyName = gServerSettings.serverPrettyName;
>+
>+ if (prettyName)
>+ {
Nit: Don't need braces here.
>+ document.getElementById("serverPrettyName").value =
>+ document.getElementById("bundle_prefs")
>+ .getFormattedString("forAccount",
>+ [prettyName]);
Not worth line wrapping the [prettyName]);
>+ }
>+++ b/mailnews/base/prefs/content/am-server-advanced.xul
> <stringbundle id="bundle_prefs" src="chrome://messenger/locale/prefs.properties"/>
>
>+ <label id="serverPrettyName"/>
Nit: indentation wrong, needs to be indented by 2 more spaces.
> <!-- IMAP Panel -->
> <vbox id="imapPanel">
r=me with those fixed.
Attachment #540756 -
Flags: review?(iann_bugzilla) → review+
![]() |
Assignee | |
Comment 6•14 years ago
|
||
Attachment #540756 -
Attachment is obsolete: true
Attachment #542012 -
Flags: review+
![]() |
Assignee | |
Updated•14 years ago
|
Keywords: checkin-needed
Comment on attachment 542012 [details] [diff] [review]
Added account name to Advanced Account Settings dialog. (v4) [Checked in: Comment 7]
http://hg.mozilla.org/comm-central/rev/d826f0f7f749
Attachment #542012 -
Attachment description: Added account name to Advanced Account Settings dialog. (v4) → Added account name to Advanced Account Settings dialog. (v4) [Checked in: Comment 7]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.5
Comment 8•14 years ago
|
||
The patch landed from this bug affects mailnews/ and caused a regression in Thunderbird. Although it was originally filed in the SeaMonkey product, it should really have been moved to Mailnews Core to track that better, and flag the dual product intentions.
Blocks: 678255
Component: MailNews: Account Configuration → Account Manager
Product: SeaMonkey → MailNews Core
QA Contact: mailnews-account → account-manager
Target Milestone: seamonkey2.5 → ---
Updated•14 years ago
|
Target Milestone: --- → Thunderbird 9.0
Updated•14 years ago
|
Comment 9•14 years ago
|
||
we should either fix this or back it out - it's broken in TB 8 beta.
Comment 10•14 years ago
|
||
(In reply to David :Bienvenu from comment #9)
> we should either fix this or back it out - it's broken in TB 8 beta.
We're dealing with it in bug 678255.
Target Milestone: Thunderbird 9.0 → Thunderbird 8.0
Comment 11•14 years ago
|
||
This is the proposed backout which will be applied to aurora and beta. The fix will then make it into gecko 10 based versions onwards.
Attachment #567844 -
Flags: review?
Comment 12•14 years ago
|
||
who did you mean to ask for review?
Updated•14 years ago
|
Attachment #567844 -
Flags: review? → review?(dbienvenu)
Comment 13•14 years ago
|
||
Comment on attachment 567844 [details] [diff] [review]
Backout non string parts
Oops, sorry, I'm doing this on the wrong bug.
Attachment #567844 -
Attachment is obsolete: true
Attachment #567844 -
Flags: review?(dbienvenu)
Comment 14•14 years ago
|
||
Due to the backouts in bug 678255, this will now be in Thunderbird 10 and SeaMonkey 2.7a1
Target Milestone: Thunderbird 8.0 → Thunderbird 10.0
You need to log in
before you can comment on or make changes to this bug.
Description
•