Closed Bug 87535 Opened 25 years ago Closed 25 years ago

View -> Languages and Web Content -> Download More should not bring up restart mozilla dialouge

Categories

(Core :: Internationalization, defect)

defect
Not set
minor

Tracking

()

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: hendikins, Assigned: jbetak)

References

Details

(Keywords: regression, Whiteboard: nsbranch+,pdt+)

Attachments

(2 files)

Reproduction shouldn't be a problem. Since this option brings up a webpage instead of changing settings, the dialouge shouldn't appear.
I suspect that this is intended, but it can be considered annoying.
Status: UNCONFIRMED → NEW
Component: Browser-General → Internationalization
Ever confirmed: true
moving
Assignee: asa → nhotta
QA Contact: doronr → andreasb
Reassign to tao.
Assignee: nhotta → tao
Switching QA to jonrubin@netscape.com
QA Contact: andreasb → jonrubin
Is this a regression? Does NS6.1 PR1 have this problem?
It does not happen with PR1.
Keywords: regression
Reassigning to bobj for now. cc'ing Roberets to watch this one, while I am on vacation. Bob - Can you take a look at this?
Assignee: tao → bobj
*** Bug 87857 has been marked as a duplicate of this bug. ***
Reassign to nhotta.
Assignee: bobj → nhotta
The following code checkes the two locale values (old and new) then alerts if they are different. http://lxr.mozilla.org/seamonkey/source/xpfe/components/prefwindow/resources/content/pref-appearance.xul#52 In case of "Download More", it could be treated as unmatched case. Juraj, is that your code or added by ben?
Juraj, I looked at bug 65251 and switchUILanguage is your code, so reassign to you. I don't see "general.useragent.locale" is modified by the UI language switch so the comparison always done against the original language not the current one. I think "general.useragent.locale" should not be modified by UI language switch. If the current UI language has to be remembered then probably need a separate pref.
Assignee: nhotta → jbetak
The code I mentioned was for pref dialog, so probably not causing the menu problem. I just talked to Juraj about that, he is going to look at this bug anyway, thanks.
Naoki, so I had a look and it seems that Ben somehow omitted "chromeRegistry.selectLocale(langcode, true);" from the original patch when changing from alert() to promptService. This is significant in two ways: 1) without this statement the menu items cannot be used to set UI or content locale. 2)When the language code is empty, as when the "Download More" item was clicked, chromeRegistry.selectLocale fails and we don't display the alert message. So without it we are getting the bogus alert. Please see the attached patch, which also addresses the somewhat lame concept for bypassing the alert, when language code == null. Since this affects the branch, should we add nsBranch and try to get approval to check it in?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.3
r=nhotta
cc'ing alecf for potential sr
sr=alecf for future reference, this code is kinda useless: var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(); if ( chromeRegistry ) { chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry ); } namely because getService() will throw an exception if the service is not found - basically chromeRegistry will always have a value... if you are not sure if the service will be there (i.e. that getService() will fail) then you should wrap this with try/catch but that code isn't actually part of THIS patch so it doesn't change the review status
Keywords: nsBranch
alecf, thanks for pointing this out - I'd suggest addressing it now. What's strictly required for this bug amounts to a 1-line change, and the larger part of the patch is already devoted to clean-up...
sr=alecf on that too
Whiteboard: waiting for 0.9.2 a=
Target Milestone: mozilla0.9.3 → mozilla0.9.2
please check into trunk and keep this bug open for moz0.9.2 landing.
Whiteboard: waiting for 0.9.2 a= → r=nhotta, sr=alecf waiting for 0.9.2 a=
pushing out. 0.9.2 is done. (querying for this string will get you the list of the 0.9.2 bugs I moved to 0.9.3)
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Asa, I apologize for marking this 0.9.2. We are merely interested in obtaining branch checkin approval, as this addresses key i18n/l10n functionality and fixes a menu item regression.
Whiteboard: r=nhotta, sr=alecf waiting for 0.9.2 a= → r=nhotta, sr=alecf, waiting for branch checkin a= (requested on 06/28/01)
jbatek. Actually it should have been me apologizing for the trespass. The Target Milestone traditionally belongs to the bug's Assignee (in this case, you) and I generally don't mess with it except that it was targeted at a Milestone that is now passed. If you are still trying to get this landed on the branch I believe that you need to email pdt2@netscape.com.
Asa, thanks for clarifying this - I just emailed PDT...
Whiteboard: r=nhotta, sr=alecf, waiting for branch checkin a= (requested on 06/28/01) → r=nhotta, sr=alecf, waiting for branch checkin pdt approval (requested on 06/29/01)
Whiteboard: r=nhotta, sr=alecf, waiting for branch checkin pdt approval (requested on 06/29/01) → r=nhotta, sr=alecf, trunk fix checked in, waiting for branch checkin pdt approval (requested on 06/29/01)
waiting for the plan for lifting trunk fixes to the branch to materialize, will take additional steps after that...
adding vtrunk
Keywords: vtrunk
This was landed to trunk at Jun 29 15:00
Changing Platform and OS to All as I reproduced the original problem on WinMe-Ja and MacOS9.1 (using 07-03-03-0.9.2). About to verify fix on latest trunk build...
OS: Linux → All
Hardware: PC → All
Verified on trunk on Win32, Linux, and Mac as follows: 07-03-11-trunk on WinMe-Ja 07-03-10-trunk on MacOS-9.1 07-03-18-trunk on Linux Redhat 7.1-Ja Need to verify on branch when fix checked in there.
Whiteboard: r=nhotta, sr=alecf, trunk fix checked in, waiting for branch checkin pdt approval (requested on 06/29/01) → r=nhotta, sr=alecf, trunk fix checked in, waiting for branch checkin pdt approval (requested on 06/29/01), verified on trunk
mark it as nsbranch+
Whiteboard: r=nhotta, sr=alecf, trunk fix checked in, waiting for branch checkin pdt approval (requested on 06/29/01), verified on trunk → nsbranch+
pdt+ per pdt meting. Land it today
Whiteboard: nsbranch+ → nsbranch+,pdt+
land 92 branch. mark it fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fixed and check into m92
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
fix in m92
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Keywords: vtrunkvbranch
Verified on branch on Win32, Linux, and Mac as follows: 07-10-05-branch on WinMe-Ja 07-13-03-branch on MacOS-9.1 07-13-04-branch on Linux Redhat 7.1-Ja
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: