Open
Bug 416680
Opened 17 years ago
Updated 2 years ago
Mozilla Crash Reporter should use branding
Categories
(Toolkit :: Crash Reporting, defect)
Toolkit
Crash Reporting
Tracking
()
NEW
People
(Reporter: adelfino, Unassigned)
References
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
benjamin
:
review-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b4pre) Gecko/2008021003 Minefield/3.0b4pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b4pre) Gecko/2008021003 Minefield/3.0b4pre
Mozilla Crash Reporter should use branding.
See attached screenshot.
Reproducible: Always
Reporter | ||
Comment 1•17 years ago
|
||
Note that Firefox should say Minefield.
Reporter | ||
Updated•17 years ago
|
Version: unspecified → Trunk
Updated•17 years ago
|
Component: General → Breakpad Integration
Product: Firefox → Toolkit
QA Contact: general → breakpad.integration
Comment 2•17 years ago
|
||
It's a known issue, but it's difficult to fix. I'm not overly concerned about it, given the unlikeliness of anyone actually using the crash reporter + unofficial branding.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•16 years ago
|
Severity: normal → minor
Comment 4•15 years ago
|
||
Assignee: nobody → reed
Status: NEW → ASSIGNED
Attachment #380398 -
Flags: review?(ted.mielczarek)
Attachment #380398 -
Flags: review?(gavin.sharp)
Updated•15 years ago
|
Attachment #380398 -
Flags: review?(gavin.sharp) → review?(benjamin)
Comment 5•15 years ago
|
||
Comment on attachment 380398 [details] [diff] [review]
patch - v1
I don't think run-time substitution is the correct answer. We should use build-time substitution if anything.
Attachment #380398 -
Flags: review?(ted.mielczarek)
Attachment #380398 -
Flags: review?(benjamin)
Attachment #380398 -
Flags: review-
Comment 6•15 years ago
|
||
(In reply to comment #5)
> (From update of attachment 380398 [details] [diff] [review])
> I don't think run-time substitution is the correct answer. We should use
> build-time substitution if anything.
build-time how? AnnotateCrashReport() stores it in memory, aiui... are you saying I should store the ProductName in crashreporter.ini/crashreporter-override.ini and do it that way?
Comment 7•15 years ago
|
||
Just use the preprocessor to substitute MOZ_APP_DISPLAYNAME wherever it currently says literal Firefox.
Comment 8•15 years ago
|
||
Something like this?
Attachment #380398 -
Attachment is obsolete: true
Attachment #381727 -
Flags: review?(benjamin)
Comment 9•15 years ago
|
||
Comment on attachment 381727 [details] [diff] [review]
patch - v2
>+ CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ProductName"),
>+ NS_STRINGIFY(MOZ_APP_DISPLAYNAME));
Pretend the NS_STRINGIFY is just NS_LITERAL_CSTRING. NS_STRINGIFY doesn't compile in this case. ;)
Updated•15 years ago
|
Attachment #381727 -
Flags: review?(benjamin) → review-
Comment 10•15 years ago
|
||
Comment on attachment 381727 [details] [diff] [review]
patch - v2
It looks like you're still adding an %s... why? And why the change to appData.name? That code is in XULrunner and really must load the data dynamically.
Comment 11•15 years ago
|
||
(In reply to comment #10)
> (From update of attachment 381727 [details] [diff] [review])
> It looks like you're still adding an %s... why? And why the change to
> appData.name? That code is in XULrunner and really must load the data
> dynamically.
The original crashreporter.ini uses two %s string replacements (http://mxr.mozilla.org/mozilla-central/source/toolkit/locales/en-US/crashreporter/crashreporter.ini#13). The crash reporter code has checks built-in for this weirdness (http://mxr.mozilla.org/mozilla-central/source/toolkit/crashreporter/client/crashreporter.cpp#402). I'm just bringing Firefox's crashreporter-override.ini file back into agreement with the original so replacement for the app name is done based on the branding used instead of a hardcoded "Firefox".
As for appData.name, my previous patch took it into account.
So, you still want to do what you mentioned in comment #7 then and just leave the XULRunner code alone? Maybe I was just trying to complicate this too much...
Comment 12•15 years ago
|
||
Yes, a build-time substitution of @MOZ_APP_DISPLAYNAME@ and don't touch the XULRunner code.
Comment 13•15 years ago
|
||
This actually turns out to be important for Fennec, because there the Name from application.ini is always Fennec, but the releases are "Firefox".
Blocks: 557114
Comment 14•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: reed → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•