Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 04:03 Go to next message
Stella Lok is currently offline Stella LokFriend
Messages: 10
Registered: September 2012
Junior Member
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 #922877 is a reply to message #917403] Tue, 25 September 2012 12:21 Go to previous messageGo to next message
Andrea Feccomandi is currently offline Andrea FeccomandiFriend
Messages: 1
Registered: September 2012
Junior Member
Stella Lok wrote on Thu, 20 September 2012 00:03
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!


Hi all,
I have the same problem.
I would like to configure XULRunner 10.x to allow access clipboard from javascript.
It is possible to do this programmatically?

Thank you very much.

Andrea
Re: How to configure browser prefs for XULRunner 10.x? [message #929859 is a reply to message #917403] Mon, 01 October 2012 20:47 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

This file lives in the user's profile directory. See the
getProfilePath() method implementation in each of the following to see
how this is computed:

- win32:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20Mozilla/win32/org/eclipse/swt/browser/MozillaDelegate.java
- gtk:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java
- cocoa:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20Mozilla/cocoa/org/eclipse/swt/browser/MozillaDelegate.java

Also note (not sure if this is helpful or not) that a user can change
these by navigating their XULRunner-based Browser to "about:config".

HTH,
Grant


On 9/20/2012 12:03 AM, Stella Lok wrote:
> 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 #929860 is a reply to message #929859] Mon, 01 October 2012 20:50 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
In case you're wondering, on Windows the profile dir resolves to
C:\Users\<userName>\AppData\Roaming\Mozilla\eclipse .

Grant


On 10/1/2012 4:47 PM, Grant Gayed wrote:
> Hi,
>
> This file lives in the user's profile directory. See the
> getProfilePath() method implementation in each of the following to see
> how this is computed:
>
> - win32:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20Mozilla/win32/org/eclipse/swt/browser/MozillaDelegate.java
>
> - gtk:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java
>
> - cocoa:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20Mozilla/cocoa/org/eclipse/swt/browser/MozillaDelegate.java
>
>
> Also note (not sure if this is helpful or not) that a user can change
> these by navigating their XULRunner-based Browser to "about:config".
>
> HTH,
> Grant
>
>
> On 9/20/2012 12:03 AM, Stella Lok wrote:
>> 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 07:00 Go to previous messageGo to next message
Stella Lok is currently offline Stella LokFriend
Messages: 10
Registered: September 2012
Junior Member
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 14:16 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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?
Re: How to configure browser prefs for XULRunner 10.x? [message #932593 is a reply to message #930659] Thu, 04 October 2012 08:50 Go to previous message
Stella Lok is currently offline Stella LokFriend
Messages: 10
Registered: September 2012
Junior Member
Thanks for your help Grant!
Previous Topic:Scrolled Composite Bars
Next Topic:Odd solution to a hang, now thoroughly confused
Goto Forum:
  


Current Time: Fri Apr 19 20:56:45 GMT 2024

Powered by FUDForum. Page generated in 0.02335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top