Closed Bug 271153 Opened 20 years ago Closed 19 years ago

[OS X] Locale Switcher extension does not work

Categories

(Firefox :: General, defect)

1.0 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sugar.waffle, Assigned: janv)

References

()

Details

(Keywords: helpwanted)

Even if only the Mac version Firefox installs Locale Switcher, the following
errors occur and do not work.
This problem is not generated in Windows and Linux.

If some language packages are installed in the English version Firefox and this
Extension is installed, all the languages installed in the Locale Switcher menu
of the Tool menu will be displayed.

But even if it chooses arbitrary languages, nothing happens.

Error message of JavaScript Console:
Error: [Exception... "Component returned failure code: 0x80004003
(NS_ERROR_INVALID_POINTER) [nsIPrefBranch.setCharPref]"  nsresult: "0x80004003
(NS_ERROR_INVALID_POINTER)"  location: "JS frame ::
chrome://locale-switch/content/switch.js :: eSwitchLocales_switch :: line 13" 
data: no]
Source File: chrome://locale-switch/content/switch.js
Line: 13

Reproducible: Always
Steps to Reproduce:
1. The following options are turned ON and Firefox is restarted
   javascript.options.showInConsole
   javascript.options.strict
2. Locale Switcher is installed after installing some language packages.
3. Arbitrary languages are chosen from the Locale Switcher menu of the Tool menu.

Actual Results:
An error message is displayed on Java Script Console.

Expected Results:
An error is not generated.(Language can be chosen.)

By the way,I received advice as this Extension is not dependent on OS.
Advice of Japanese message:
http://moz.skillup.jp/jlp/viewtopic.php?t=269#2064

I think that there may be a problem only in the Mac version at registration of a
menu, and acquisition of the information from it.
The locale-switcher extension is not "supported"; I wrote it on a lark and don't
have a mac. cc'ing a couple people who might have interest in maintaining/fixing it.
Assignee: firefox → nobody
reporter: what build of Firefox are you using? (please post the complete line
found in "about:")
>reporter: what build of Firefox are you using? (please post the complete line
>found in "about:")

I use FireFox 1.0 & Mac OS X 10.3.6

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107
Firefox/1.0
confirming bug, using the same versions of Firefox and MacOS X as the reporter. 
No idea why it does not work though :(
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: helpwanted
Summary: Locale Switcher does not work.(Error: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIPrefBranch.setCharPref]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" → [OS X] Locale Switcher extension does not work
I'll have a look. I don't have a Mac, but the error is informative enough to at
least find the offending code and see what's up.
Assignee: nobody → brian
It's not obvious to me why the setting of the pref is failing on Mac.
Status: NEW → ASSIGNED
(In reply to comment #6)
> It's not obvious to me why the setting of the pref is failing on Mac.

I guess event.target.value might not be a string, for some reason.
I don't have a Mac and never looked at this. Can someone test if it is still happening.
Assignee: brian → Jan.Varga
Status: ASSIGNED → NEW
I believe this works with locale-switcher 1.5, and I don't remember why ;-)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.