Closed
Bug 55156
Opened 25 years ago
Closed 25 years ago
localizable values are cached in the HTTP header
Categories
(Core :: Networking, defect, P1)
Core
Networking
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: tao, Assigned: tao)
References
()
Details
(Whiteboard: [rtm++])
Attachments
(1 file)
accept-lang and locale part of the U-A string are localizable resources which
are stored in navigator.properties. Their values are retrieved and 'cached'
in HTTP header and never changed even when locale changed.
Please refer to http://bugscape.netscape.com/show_bug.cgi?id=2518 for details.
We need this fixed by RTM to have browser and messenger send the right
accept-lang & U-A string to servers.
Keywords: rtm
Add racham to review profile code and hyatt for moving the strbundle flush code.
Hi, Gagan/Warren:
Would you please review the HTTP Handler part?
I am also taking the bug over to speed up the process.
thx
Assignee: gagan → tao
Whiteboard: patch ready for review.
the stringbundle flushing part is in (54784). Awaiting review for the
HTTPHandler part.
mark it P1.
Status: NEW → ASSIGNED
Priority: P3 → P1
![]() |
||
Updated•25 years ago
|
Whiteboard: patch ready for review. → [rtm need info] patch ready for review.
r=gagan
Whiteboard: [rtm need info] patch ready for review. → [rtm need info]
![]() |
||
Comment 7•25 years ago
|
||
Tao, your patch looks good to me.
sr=mscott
Thanks to gagan, racham, and mscott for reviewing the code.
Hi, PDT:
please ++ this bug.
thx
Whiteboard: [rtm need info] → rtm+
Target Milestone: --- → M19
![]() |
||
Comment 9•25 years ago
|
||
Spoke to ftang, tao.
Looks like the bad thing here is that no profile can change it's locale - it
always gets the default installed locale. Since the UA is affected, all
language tracking would become suspect. This seems very serious.
On the other hand, this change is down in the guts and it's not a one-liner.
Please get this checked in on the branch and get several people to bang on it
for the next day and come back to us tomorrow with your results. If people can
prove this fix is OK and no regressions occur we'll approve this.
Whiteboard: rtm+ → [rtm need info]
![]() |
Assignee | |
Comment 10•25 years ago
|
||
Fix checked in into the trunk.
IQA,
Please test it.
Whiteboard: [rtm need info] → rtm+
![]() |
||
Comment 11•25 years ago
|
||
marking [rtm need info] until IQA validates the patch on the trunk. Please mark
[rtm+] if it passes.
Whiteboard: rtm+ → [rtm need info]
![]() |
||
Comment 12•25 years ago
|
||
Tao, can you give us test cases? Bom-Shik, can you work with Tao to verify this
in the trunk today? We cannot wait more than Friday to get this into the branch.
Changing QA contact from tever to blee.
QA Contact: tever → blee
![]() |
Assignee | |
Comment 13•25 years ago
|
||
Might I suggest that tever QA the US build w/ en-US pack and blee the US build
with en-DE pack? Thus, we have both sides covered.
Switch QA back to tever.
QA Contact: blee → tever
![]() |
||
Comment 14•25 years ago
|
||
relevant headers for todays trunk builds en-US pack - looks good
WinNT 2000101208 -
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001012
Netscape6/6.0b3
Accept: */*
Accept-Language: en
Mac 2000101208 -
User-Agent: Mozilla/5.0 (Macintosh; N; PPC; en-US; m18) Gecko/20001012
Netscape6/6.0b3
Accept: */*
Accept-Language: en
Linux 2000101212 -
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.5-22 i686; en-US; m18) Gecko/20001012
Netscape6/6.0b3
Accept: */*
Accept-Language: en
changing QA to blee
QA Contact: tever → blee
![]() |
Assignee | |
Comment 15•25 years ago
|
||
Hi, QA:
Please download the langende.xpi to your local disk and use "File|Open File..."
to install it with nscp-2000-10-12-08-Mtrunk build.
To test the U-A string and accept-lang, goto "bubblegum:4321". You should see
"en-DE" in the u-a string and "de" in the accept-lang field.
Please let me know if you see any wierdness. If all go well, I'll request
PDT to approve the fix on the branch.
thx
![]() |
Assignee | |
Comment 16•25 years ago
|
||
Please note that
1. In langende,xpi, I localized navigator.properties in en-DE.jar to show
de home page, accept-lang and u-a string.
2. You need to switch to en-DE langpack, "View|Set Language/Region" to see
the changes in (1).
![]() |
Assignee | |
Comment 17•25 years ago
|
||
Oops, IQA, please use nscp-2000-10-12-08-Mtrunk build and the langende.xpi in
the URL field to test the patch. Sorry for missing out this note.
![]() |
||
Comment 18•25 years ago
|
||
Worked in
Linux 101208Mtrunk >> User-Agent: en-DE, Accept-Language: de
WinNT 101208Mtrunk >> User-Agent: en-DE, Accept-Language: de
Had problem installing langende.xpi in Win NT - will further investigate.
Linux 101208Mtrunk
User-Agent: en-DE
Accept-Language: de
Whiteboard: [rtm need info] → rtm+
![]() |
Assignee | |
Comment 20•25 years ago
|
||
patch checked in into the branch.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
![]() |
||
Comment 21•25 years ago
|
||
Reopening as the latest en-DE pack shows Accept-Language: en.
Linux 101808MN6 >> User-Agent: en-DE, Accept-Language: en
WinNT 101808MN6 >> User-Agent: en-DE, Accept-Language: en
Mac 101808MN6 >> User-Agent: en-DE, Accept-Language: en
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
![]() |
Assignee | |
Comment 22•25 years ago
|
||
Those "en" values come from langpacks. Please log separate bugs to track this.
After discussion with Erik, the suggested values of accept-language in
langpacks are:
en-*: en
de-*: de
fr-*: fr
In this case, it is correct for en-DE to have "en" as the value of accept-lang.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•