Closed Bug 386698 Opened 17 years ago Closed 17 years ago

Console warnings at startup in nsPersistantProperties: the property %s already exists

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mscott, Assigned: mscott)

References

Details

Attachments

(1 file)

When starting up a trunk version of Thunderbird, we get lots of warnings in the console for things like the property margin already exists, or the property li already exists.

We are using the url formatter service to format the start page url and this is having an unintended side effect of loading chrome://messenger/content/start.xhtml as if it were a string bundle properties file.

We can work around this by reading the url out of prefs ourselves and using nsIUrlFormatter::FormatUrl instead of formaturlpref.
Attached patch the fixSplinter Review
this patch avoids using nsIUrlFormatter::formatURLPref. We read the pref ourselves and use nsIUrlFormatter::formatURL.

I also dropped the region from the name of our two helper methods since there's nothing region specific about their implementations.
Attachment #270695 - Flags: review?(philringnalda)
Comment on attachment 270695 [details] [diff] [review]
the fix

r=me, thanks for quieting that strange and terrible console spew!
Attachment #270695 - Flags: review?(philringnalda) → review+
Assignee: nobody → mscott
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
OS: Windows Vista → All
Hardware: PC → All
V/fixed. Mac OS X 10.4

I saw those errors in 1.5.0.7, but not in 2.0.0.4.

When I startup w/ the newer version, I do not see any entries in Error Console.
Status: RESOLVED → VERIFIED
QA Contact: front-end → benc
QA Contact: benc → front-end
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: