Closed Bug 287695 Opened 20 years ago Closed 20 years ago

Hardcoded appname in default mailto: form subject

Categories

(MailNews Core :: Composition, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.8beta2

People

(Reporter: kairo, Assigned: csthomas)

References

Details

Attachments

(1 file, 2 obsolete files)

In
http://lxr.mozilla.org/mozilla/search?string=DefaultFormSubject
we use "Form Post from Mozilla" as default subject for mailto: form posts. We
should replace "Mozilla" with whatever app name we're using (brandShortName).

Very soon, we won't even have any product called "Mozilla" on the trunk any more
(see bug 285696), and it also looks strange for Firefox (see bug 265300).
Assignee: sspitzer → cst
Keywords: helpwanted
Priority: -- → P5
Target Milestone: --- → mozilla1.8beta2
Status: NEW → ASSIGNED
Keywords: helpwanted
Priority: P5 → P3
Attached patch patch (obsolete) — Splinter Review
Attachment #179006 - Flags: superreview?(bzbarsky)
Attachment #179006 - Flags: review?(caillon)
Whiteboard: [cst: r?]
Comment on attachment 179006 [details] [diff] [review]
patch

OK, I built with this here (on Linux) with a different breandShortName than
"Mozilla", and it compiles and works correctly.
How about adding brand.properties to the properties files that nsContentUtils
knows about instead of copying all that code?
Attachment #179006 - Flags: superreview?(bzbarsky) → superreview-
Attachment #179006 - Attachment is obsolete: true
Attachment #179006 - Flags: review?(caillon)
Attached patch patch (obsolete) — Splinter Review
Attachment #179395 - Flags: superreview?(bzbarsky)
Attachment #179395 - Flags: review?(cbiesinger)
Attachment #179395 - Attachment is obsolete: true
Attachment #179395 - Flags: superreview?(bzbarsky)
Attachment #179395 - Flags: review?(cbiesinger)
Attached patch patchSplinter Review
Attachment #179401 - Flags: superreview?(bzbarsky)
Attachment #179401 - Flags: review?(cbiesinger)
Comment on attachment 179401 [details] [diff] [review]
patch

+					    formatStrings, 1, subjectStr);

s/1/NS_ARRAY_LENGTH(formatStrings)/
Attachment #179401 - Flags: review?(cbiesinger) → review+
Comment on attachment 179401 [details] [diff] [review]
patch

sr=bzbarsky if biesi's nit is addressed.
Attachment #179401 - Flags: superreview?(bzbarsky) → superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
QA Contact: stephend
Resolution: --- → FIXED
Whiteboard: [cst: r?]
Verified FIXED using LXR for code inspection:

http://lxr.mozilla.org/mozilla/search?string=DefaultFormSubject

DefaultFormSubject
/content/html/content/src/nsFormSubmission.cpp, line 460 -- "DefaultFormSubject",
/dom/locales/en-US/chrome/layout/HtmlForm.properties, line 44 -- # LOCALIZATION
NOTE (DefaultFormSubject): %S will be replaced with brandShortName
/dom/locales/en-US/chrome/layout/HtmlForm.properties, line 45 --
DefaultFormSubject=Form Post from %S
Status: RESOLVED → VERIFIED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: