Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How can I make "network.http.redirection-limit" higher than 255 ?

  • 2 回覆
  • 1 有這個問題
  • 7 次檢視
  • 最近回覆由 cor-el

more options

Hi. I am trying to change "network.http.redirection-limit" value in "about:config".

I tried 10000, and it shows now "network.http.redirection-limit = 10000", but when I try to run my script, it stops in 255.

It's not working for 10000 times, it just stops in 255.

Any way to make this value higher than 255 ?

Hi. I am trying to change "network.http.redirection-limit" value in "about:config". I tried 10000, and it shows now "network.http.redirection-limit = 10000", but when I try to run my script, it stops in 255. It's not working for 10000 times, it just stops in 255. Any way to make this value higher than 255 ?

所有回覆 (2)

more options

Hi, try to lock the preference to see if works that way, 255 is a protection to not crash the browser.

http://kb.mozillazine.org/Locking_preferences


thank you

more options

You can't. Some prefs are clamped that this pref is clamped to 0xff.

958     if (PREF_CHANGED(HTTP_PREF("redirection-limit"))) {
959         rv = prefs->GetIntPref(HTTP_PREF("redirection-limit"), &val);
960         if (NS_SUCCEEDED(rv))
961             mRedirectionLimit = (uint8_t) clamped(val, 0, 0xff);