Closed Bug 144740 Opened 23 years ago Closed 22 years ago

javascript strict warnings in pref-contentpacks.xul

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.1final

People

(Reporter: bugzilla, Assigned: jbetak)

References

Details

(Keywords: intl, Whiteboard: has r/sr needs a=)

Attachments

(1 file)

just going into Edit -> Prefs -> Apperance -> Language produces: Warning: redeclaration of var selectedItem Source File: chrome://content-packs/content/pref-contentpacks.xul Line: 103, Column: 13 Source Code: var selectedItem = languageList.selectedItems.length ? languageList.selectedItems[0] : null; Warning: redeclaration of var chromeRegistry Source File: chrome://content-packs/content/pref-contentpacks.xul Line: 115, Column: 14 Source Code: var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(Components.interfaces.nsIXULChromeRegistry); Warning: redeclaration of var observerService Source File: chrome://content-packs/content/pref-contentpacks.xul Line: 117, Column: 14 Source Code: var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); Warning: function SwitchPacks does not always return a value Source File: chrome://content-packs/content/pref-contentpacks.xul Line: 124, Column: 4 Source Code: } 20020514
Keywords: intl
QA Contact: ruixu → teruko
I am not sure if I am a right owner for this. Try tao?
Assignee: yokoyama → tao
Blocks: 154922
Blocks: 62177
No longer blocks: 154922
-> jbetak
Assignee: tao → jbetak
Attached patch patch 1.0Splinter Review
first try at rolling up a patch, should be good to go
Naoki, Roy - I have a small patch to fix some strict JS warnings. Would you have a minute to review it? :-)
Status: NEW → ASSIGNED
Comment on attachment 93356 [details] [diff] [review] patch 1.0 /r=yokoyama
Attachment #93356 - Flags: review+
Thanks Roy! Chris could you sr=?
Comment on attachment 93356 [details] [diff] [review] patch 1.0 sr=blizzard
Attachment #93356 - Flags: superreview+
thanks a bunch, Chris!
Whiteboard: has r/sr needs a=
Comment on attachment 93356 [details] [diff] [review] patch 1.0 a=asa (on behalf of drivers) for checkin to 1.1
Attachment #93356 - Flags: approval+
checked in. Kairo, could you please verify?
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified as fixed.
Status: RESOLVED → VERIFIED
Keywords: nsbeta1+
Target Milestone: --- → mozilla1.1final
This caused a regression: language switching is broken now! You changed the called interface back from nsIXULChromeRegistry to nsIChromeRegistry :( see bug bug 164496
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: