Closed
Bug 144740
Opened 23 years ago
Closed 22 years ago
javascript strict warnings in pref-contentpacks.xul
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
VERIFIED
FIXED
mozilla1.1final
People
(Reporter: bugzilla, Assigned: jbetak)
References
Details
(Keywords: intl, Whiteboard: has r/sr needs a=)
Attachments
(1 file)
3.34 KB,
patch
|
tetsuroy
:
review+
blizzard
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
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
Comment 1•23 years ago
|
||
I am not sure if I am a right owner for this.
Try tao?
Assignee: yokoyama → tao
Assignee | ||
Comment 3•23 years ago
|
||
first try at rolling up a patch, should be good to go
Assignee | ||
Comment 4•22 years ago
|
||
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 5•22 years ago
|
||
Comment on attachment 93356 [details] [diff] [review]
patch 1.0
/r=yokoyama
Attachment #93356 -
Flags: review+
Assignee | ||
Comment 6•22 years ago
|
||
Thanks Roy!
Chris could you sr=?
Comment 7•22 years ago
|
||
Comment on attachment 93356 [details] [diff] [review]
patch 1.0
sr=blizzard
Attachment #93356 -
Flags: superreview+
Comment 9•22 years ago
|
||
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+
Assignee | ||
Comment 10•22 years ago
|
||
checked in.
Kairo, could you please verify?
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 12•22 years ago
|
||
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.
Description
•