Closed
Bug 735710
Opened 14 years ago
Closed 10 years ago
Error message ignores internal branding and always says "Firefox"
Categories
(Toolkit :: Startup and Profile System, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: mkaply, Assigned: mkaply)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
|
1.88 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
When your profile is locked, you receive an error message that says
Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.
This message always says "Firefox" regardless of the values in brand.properties.
The code is here:
http://mxr.mozilla.org/mozilla-central/source/toolkit/xre/nsAppRunner.cpp#1705
It shouldn't be using gAppData, it should be using the brand stuff.
| Assignee | ||
Updated•14 years ago
|
Blocks: unofficial-fx
| Assignee | ||
Comment 1•14 years ago
|
||
Using brand.properties.
brand.properties should always exist in this case.
Assignee: nobody → mozilla
| Assignee | ||
Comment 2•14 years ago
|
||
Previous patch had extraneous code in it
Attachment #608317 -
Attachment is obsolete: true
| Assignee | ||
Updated•14 years ago
|
Attachment #608318 -
Flags: review?(benjamin)
Updated•14 years ago
|
Attachment #608318 -
Flags: review?(benjamin) → review+
Comment 3•14 years ago
|
||
I don't think this change is required.
If gAppData says Firefox, then it means plenty other things relying on it (such as anything getting the info from nsIXULAppInfo) will say Firefox. If brand.properties is not saying the same as gAppData, then you shot yourself in the foot by changing brand.properties without giving an adequate application.ini.
Comment 4•14 years ago
|
||
Plus, not all applications have a branding. Your patch would fail on some simple xulrunner apps.
Comment 5•14 years ago
|
||
Mmmm actually, there's also the issue of some locales using a localized brand name... but then, the locale is probably not even set when showing these messages. (which makes the localization for these strings effectively never used)
Comment 6•14 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #5)
> Mmmm actually, there's also the issue of some locales using a localized
> brand name... but then, the locale is probably not even set when showing
> these messages. (which makes the localization for these strings effectively
> never used)
Which is not true on localized builds (as opposed to build with l10n xpis installed, which i was thinking about).
So all in all, the patch *is* required, but there should be a fallback to gAppData.
| Assignee | ||
Comment 7•14 years ago
|
||
This code is in toolkit, so the presence of brand.properties is a requirement (at least that's my understanding).
If you do a search on brand.properties in mxr, you'll see quite a few places that assume the presence of a brand bundle.
Also, there should be zero code that requires that gAppData and brand.properties match (and I hope there is none). The two are completely unrelated.
For Nightly, you want every visual reference to the user to say Aurora, but internally in all ways, it should behave like Firefox (including gAppData).
| Assignee | ||
Comment 8•14 years ago
|
||
> For Nightly, you want every visual reference to the user to say Aurora,
For Nightly, you want every visual reference to the user to say Nightly, for Aurora it should say Aurora.
Sorry, combined two thoughts into one sentence.
Comment 9•14 years ago
|
||
(In reply to Michael Kaply (mkaply) from comment #7)
> This code is in toolkit, so the presence of brand.properties is a
> requirement (at least that's my understanding).
I don't think it is. But if it is, then that should be documented.
Comment 10•14 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #9)
> (In reply to Michael Kaply (mkaply) from comment #7)
> > This code is in toolkit, so the presence of brand.properties is a
> > requirement (at least that's my understanding).
>
> I don't think it is. But if it is, then that should be documented.
It's kind of a soft requirement I guess. Plenty of stuff depends on its presence: https://developer.mozilla.org/en/XULRunner_tips#Branding
Comment 11•14 years ago
|
||
(In reply to Dave Townsend (:Mossop) from comment #10)
> It's kind of a soft requirement I guess. Plenty of stuff depends on its
> presence: https://developer.mozilla.org/en/XULRunner_tips#Branding
But this plenty of stuff is not mandatory for xulrunner apps, is it?
Comment 12•14 years ago
|
||
It depends on what your XULRunner app does. If it shows web content, I think there are parts of gecko that depend on it (e.g. network error pages, though those have some fallback). In any case, it's not particularly difficult to add, so we should generally recommend that it be present. Some people might still decide that it doesn't affect anything they care about and omit it.
| Assignee | ||
Comment 13•14 years ago
|
||
> In any case, it's not particularly difficult to add, so we should generally recommend that it be present.
Agreed. I'll submit a new patch with fallback.
Comment 14•14 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #12)
> It depends on what your XULRunner app does. If it shows web content, I think
> there are parts of gecko that depend on it (e.g. network error pages, though
> those have some fallback).
As a matter of fact, network error pages don't depend on branding. The xulrunner-provided ones use generic wording ("the application"). The overrides for Firefox do hardcode "Firefox", which is a problem for rebranding (bug 336029).
> In any case, it's not particularly difficult to
> add, so we should generally recommend that it be present. Some people might
> still decide that it doesn't affect anything they care about and omit it.
In the present case, it's still better to have a fallback if there is no branding, because the alternative is the application failing to start *and* not presenting the user any error message.
Comment 15•14 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #14)
> As a matter of fact, network error pages don't depend on branding.
I was thinking of:
http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp#10825
IIRC there was a patch somewhere to extend that trick to other error page strings.
I don't really have a problem with making lack of branding fatal, given that it should simplify a bunch of code and avoid arguments about what is/isn't "supported".
| Assignee | ||
Comment 16•14 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #15)
> I was thinking of:
> http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.
> cpp#10825
That code looks broke. It's only using the fallback if the query of the string from the brand bundle fails, not if getting the brand bundle itself fails.
So it would still fail if there was no brand.properties.
| Assignee | ||
Comment 17•14 years ago
|
||
I did some investigation into this and honestly, I'll have to punt on it.
My Mozilla string fu is old and I have no idea how to get the kind of strings we need into the const PRUnichar.
Any advice would be appreciated.
| Assignee | ||
Comment 18•10 years ago
|
||
I'm going to resolve this incomplete.
1. I don't think it matters
2. If you really want to change this message, override the values in application.ini and use that.
Plus with removal of distribution/bundles, you can't easily override brand.properties at startup anyway.
I don't think it is worth fixing.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•