Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to configure browser prefs for XULRunner 10.x?(What is the XULRunner 10.x equivalent of XULRunner 1.9.x / 2.x 's all.js / greprefs.js ?)
How to configure browser prefs for XULRunner 10.x? [message #917403] |
Thu, 20 September 2012 00:03  |
Eclipse User |
|
|
|
I would like to configure the "browser.cache.disk.enable" pref property in XULRunner 10.x. For XULRunner 1.9.x and 2.x, I was able to locate the relevant preferences config file in <XULRunnerInstallationDir>\greprefs\all.js or <XULRunnerInstallationDir>\greprefs.js to set the property. May I know where is the equivalent file in XULRunner 10.x?
Thank you very much for your help!
|
|
| | | |
Re: How to configure browser prefs for XULRunner 10.x? [message #930277 is a reply to message #929860] |
Tue, 02 October 2012 03:00   |
Eclipse User |
|
|
|
Hi Grant,
Thanks a lot for your help! Inside C:\Users\<userName>\AppData\Roaming\Mozilla\eclipse, I see a prefs.js
Inside prefs.js, I see that there are some defaults already set, using the syntax user_pref(<key>, <value>), instead of the pref(<key>,<value>) syntax used in all.js / greprefs.js for XULRunner 1.9.x and 2.x.
I'd just like to verify if prefs.js is the right file to change, and that I should use the user_pref(<key>, <value>) syntax as well?
|
|
|
Re: How to configure browser prefs for XULRunner 10.x? [message #930659 is a reply to message #930277] |
Tue, 02 October 2012 10:16   |
Eclipse User |
|
|
|
That should be the correct file, and I would suggest following whatever
syntax is already there. To see it in action, launch your app, navigate
your XULRunner-based Browser to about:config, change a setting there,
exit your app, and then see what was written to the file.
Grant
On 10/2/2012 3:00 AM, Stella Lok wrote:
> Hi Grant,
>
> Thanks a lot for your help! Inside
> C:\Users\<userName>\AppData\Roaming\Mozilla\eclipse, I see a prefs.js
>
> Inside prefs.js, I see that there are some defaults already set, using
> the syntax user_pref(<key>, <value>), instead of the pref(<key>,<value>)
> syntax used in all.js / greprefs.js for XULRunner 1.9.x and 2.x.
> I'd just like to verify if prefs.js is the right file to change, and
> that I should use the user_pref(<key>, <value>) syntax as well?
|
|
| |
Goto Forum:
Current Time: Wed Jul 23 13:56:16 EDT 2025
Powered by FUDForum. Page generated in 0.05952 seconds
|