Closed Bug 428257 Opened 18 years ago Closed 18 years ago

tags pane opens with empty tag names if opens from tag->customize menu

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: iav, Assigned: neil)

Details

Attachments

(3 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.9pre) Gecko/2008040902 SeaMonkey/2.0a1pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.9pre) Gecko/2008040902 SeaMonkey/2.0a1pre Tags pane opens with empty tag names if opens from mail message context menu tag->customize menu. Reproducible: Always Steps to Reproduce: 1. select mail in mail list 2. right click on mail in list, choose tag->customize Actual Results: Opens preferences window with tag pane; all tag names empty Expected Results: tag pane should contain my tags
Can you post the preference entries for mailnews.tags.* from your prefs.js, please?
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee: mail → mnyromyr
Status: ASSIGNED → NEW
Oh, and do you get any related errors in Tools->Web Dev->Error Console?
While trying to reproduce this, I have noticed, that at first run the Tag-Names are listed like expected, but when I choose "Tag -> Customize" another time, the Name-Fields are empty like Igor has described. There are no (related) Errors in Error-Console. I have not changed the default Entrys, so there are this in my prefs.js: user_pref("mailnews.tags.$label1.color", "#FF0000"); user_pref("mailnews.tags.$label1.tag", "Important"); user_pref("mailnews.tags.$label2.color", "#FF9900"); user_pref("mailnews.tags.$label2.tag", "Work"); user_pref("mailnews.tags.$label3.color", "#009900"); user_pref("mailnews.tags.$label3.tag", "Personal"); user_pref("mailnews.tags.$label4.color", "#3333FF"); user_pref("mailnews.tags.$label4.tag", "To Do"); user_pref("mailnews.tags.$label5.color", "#993399"); user_pref("mailnews.tags.$label5.tag", "Later"); user_pref("mailnews.tags.version", 2);
no errors in error console
Attached patch v1: delay updating textbox value (obsolete) — — Splinter Review
It seems that slower systems try to update the textbox values before the actual main window is ready; this happens when I run a Mac debug build with Venkman debugging and opening tags preferences from the standalone message window. ;-) This patch delays the updates until after the frontend is (kinda) ready.
Attachment #314981 - Flags: superreview?(neil)
Attachment #314981 - Flags: review?(neil)
With Seamonkey trunk 2008/4/10 build, phenomenon could be observed. (a) With 5 standard tags + 3 added tags 4 standard tags with tag name + 4 tags with blank tag name (b) With 5 standard tags + 10 added tags all tags were displayed with blank tag name At "New Preference" via "Edit/Preference/READ THIS!", expand of "Mail&News" is possible when 4/10 build(was impossible when 4/08 build), and all above 15 tags were displayed with tag name at "Tags" panel. Changes explained in "READ THIS!" on Mail&News/Tag looks to be landed on 2008/4/09 build.
Attached patch Alternative idea — — Splinter Review
It seems to me that the XBL for the textbox is missing sometimes (oddly I get it on the last tag, and only the first time I open Preferences.) Perhaps this change is a less hacky way of populating tags more reliably.
Attachment #315080 - Flags: review?(mnyromyr)
Comment on attachment 315080 [details] [diff] [review] Alternative idea That's cleaner, yes. (Despite the violation of the "do task in one place only" principle, but I don't think it's worth rewriting all callers.)
Attachment #315080 - Flags: review?(mnyromyr) → review+
Assignee: mnyromyr → neil
Fix checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 314981 [details] [diff] [review] v1: delay updating textbox value Looks like this patch was superseded by Neil's suggestion, therefore obsoleting as this bug is resolved fixed as well.
Attachment #314981 - Attachment is obsolete: true
Attachment #314981 - Flags: superreview?(neil)
Attachment #314981 - Flags: review?(neil)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: