Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

  • 1 件の返信
  • 34 人がこの問題に困っています
  • 2 回表示
  • 最後の返信者: cor-el

more options

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

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

選ばれた解決策

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

この回答をすべて読む 👍 0

すべての返信 (1)

more options

選ばれた解決策

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