Closed
Bug 71387
Opened 25 years ago
Closed 25 years ago
Safe check usage of GetSelectedLocale()
Categories
(Core :: DOM: Navigation, defect)
Core
DOM: Navigation
Tracking
()
RESOLVED
FIXED
mozilla0.9
People
(Reporter: tao, Assigned: ccarlen)
Details
Attachments
(1 file)
|
5.39 KB,
patch
|
Details | Diff | Splinter Review |
Hi, Jud:
As you might have known that I recently landed a change to separate
region-specific resources from UI language resources. As a result, the
directory names in bin/defaults/* are also changed. In US build, they become
"bin/defaults/profile/US/*" instead of "bin/defaults/profile/en-US/*".
Looking at the usage of GetSelectedLocale() in the following code, I believe
that the package name, "navigator", should be changed to "global-region".
Otherwise, those default files will not be copied as expected.
mozilla/embedding/browser/powerplant/source/CAppFileLocationProvider.cpp,
line 285 --
rv = chromeRegistry->GetSelectedLocale(tmpstr.GetUnicode(), localeName);
mozilla/embedding/tests/mfcembed/winEmbedFileLocProvider.cpp, line 302 --
rv = chromeRegistry->GetSelectedLocale(tmpstr.GetUnicode(), localeName);
Comment 1•25 years ago
|
||
-> conrad, then maybe chak?
Comment 2•25 years ago
|
||
Tao:
Is the fix you're suggesting is to just change from the string "navigator" to
the string "global-region" in the places you've mentioned?
Cc:ing Conrad as well...
| Assignee | ||
Comment 3•25 years ago
|
||
Actually, the GetChromeLocale() routine should just be removed from these files
- it's no longer needed. See
http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsAppFileLocationProvider.cpp#155
>Tao:
>Is the fix you're suggesting is to just change from the string "navigator" to
>the string "global-region" in the places you've mentioned?
yes.
Comment 5•25 years ago
|
||
-> chak, then to conrad for removal/replacement.
Assignee: valeski → chak
Keywords: mozilla0.9
| Assignee | ||
Comment 6•25 years ago
|
||
| Assignee | ||
Comment 7•25 years ago
|
||
Here's a patch to remove the locale issue from these files - it's now dealt with
elsewhere. Chak, you can assign this to me if you want.
| Assignee | ||
Comment 9•25 years ago
|
||
Accepting - tao, can you review? This is the same as what was done for bug
65907. I should have done the same for these two files but didn't :-/
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
| Reporter | ||
Comment 10•25 years ago
|
||
Hi, Conrad:
Would you mind briefly desribe what you wanna achieve in the patch? thx
| Assignee | ||
Comment 11•25 years ago
|
||
tao, did you go back and look at bug 65907? This does the same thing as was done
there: the application-level directory service provider is not responsible for
returning the locale-specific subdir of the profile defaults - only the root
profile defaults. The profile mgr, when it activates a profile, gets the root
profile defaults dir from directory service, gets the locale from chrome, and
then appends that as a sub dir. So, what this patch does is just remove that
unnescesary reference to chrome for the locale. Since that change was made to
profile mgr, this code I want to remove has not been used and this patch just
gets rid of it (plain cleanup).
| Reporter | ||
Comment 12•25 years ago
|
||
In bug 65907, the locale tag is appended to the path in ProfileManager code.
How about in this bug, i.e., in "embedding"? Does embedding have a
ProfileManger or the "embedding" does not care and leave it to the application?
| Assignee | ||
Comment 13•25 years ago
|
||
Both of the embedding samples to which these directory service providers belong
use profile mgr so it's the same as bug 65907.
| Reporter | ||
Comment 14•25 years ago
|
||
r=tao.
| Assignee | ||
Comment 15•25 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•