X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

need to get network.http.max-connections-per-server value from javascript

Posted

I have an AJAX web application which is very sensitive to the number of connections allowed by the browser. Bad things happen when the limit is set up low: frozen screens, uncommitted transactions, deadlocks etc.

In order to prevent this I need to check the current value of configuration parameter "network.http.max-connections-per-server" programmatically (i.e. by the javascript code) and reject a request if the limit is too low with appropriate instructions to the user.

I guess it's possible because "about:config" renders all parameters values and even lets user to modify them. However the code behind the page is very complicated so I can't figure out how to perform my task. All I need is a function or method returning the current value of a given config parameter.

Any help will be greatly appreciated.

Anatoly

Chosen solution

You do not have access to pref on the about:config page via a website.
In theory it is possible, but the user will get a pop-up and need to confirm every time.

See also http://www.mozilla.org/projects/security/components/signed-scripts.html

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • Java(TM) Platform SE binary
  • Default Plug-in
  • Adobe PDF Plug-In For Firefox and Netscape
  • 1.9.0009.1
  • Office Plugin for Netscape Navigator
  • Shockwave Flash 10.0 r45
  • 4.0.50524.0
  • Google Update
  • Java Plug-in 1.6.0_12 for Netscape Navigator (DLL Helper)
  • DRM Netscape Network Object
  • Npdsplay dll
  • DRM Store Netscape Plugin

Application

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

More Information

cor-el
  • Top 10 Contributor
  • Moderator
10750 solutions 96738 answers

Chosen Solution

You do not have access to pref on the about:config page via a website.
In theory it is possible, but the user will get a pop-up and need to confirm every time.

See also http://www.mozilla.org/projects/security/components/signed-scripts.html