It looks like you need to include nsUserSettings.jsin your file .xul:
<script type="application/x-javascript" src="chrome://global/content/nsUserSettings.js" />
It is defined here nsUserPreferences.
See here for an example options.xul. The tag scriptmust be the first child prefwindowto make sure that it loads before your own code.
Additional Information
, Firefox. , mozilla.org mozilla.org, . , , ? "", . , , "Next" "Previous" .