Preferences bindings not working on Windows XP & FF 7.*
Marek Sebera <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
Hi,
below are two links connecting this message to currently existing forum threads.
http://stackoverflow.com/questions/7956034/firefox-extension-windows-xp-7-0-1-preferences-bindings-not-working
http://forums.mozillazine.org/viewtopic.php?f=38&t=2349989
To describe my problem, I have Prefwindow with Prefpane, Preferences with Preference children.
Binding between Preference and key in configuration, is not working when using FF 7.0.1 and Windows XP.
Can you please check my code below, and tell me if it is an issue of code, or platform?
I've tried looking at preference keys connected to these Preference objects (extensions.extid.setup_homepage,extensions.extid.setup_search,extensions.extid.setup_stats)
and they have not changed while un/checking checkboxes (which works in all other OS & FF combinations, tested on Win,Mac,Linux and FF 3.5+ )
Thanks
Regards
Marek Sebera
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<prefwindow id="extidSettings"
title="Title"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
buttons=",">
<prefpane id="setup_pane" label="Title">
<script type="application/x-javascript" src="chrome://extid/content/common.js"/>
<preferences>
<preference id="setupHomepage" name="extensions.extid.setup_homepage" type="bool"/>
<preference id="setupSearch" name="extensions.extid.setup_search" type="bool"/>
<preference id="setupStats" name="extensions.extid.setup_stats" type="bool"/>
</preferences>
<hbox align="center" pack="center">
<image src="chrome://extid/skin/logo_settings.png"/>
</hbox>
<hbox align="center">
<checkbox label="label1" preference="setupHomepage" id="chkbx_homepage" name=""/>
</hbox>
<hbox align="center">
<checkbox label="label2" preference="setupSearch" id="chkbx_search" name=""/>
</hbox>
<menuseparator/>
<hbox align="center">
<checkbox label="label3" preference="setupStats" id="chkbx_stats" name=""/>
</hbox>
<hbox align="center" pack="center">
<button label="Save" oncommand="jsobj.saveSettings();"/>
</hbox>
</prefpane>
</prefwindow>