本文介绍了如何在Firefox中使用javascript设置network.http.response.timeout?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

network.http.response.timeout 从Firefox 28版本中未设置为默认限制为300(5分钟)(版本29) a href =http://morgb.blogspot.de/2014/05/firefox29-and-http-response-timeout.html =nofollow>请参阅morgb.blogspot.de上的此博客条目 a>)。

The network.http.response.timeout was changed from not being set in Firefox version 28 to a default limit of 300 (5 minutes) in version 29. (see this blog entry at morgb.blogspot.de).

我想把它改回一个更高的值,如果需要在Firefox-Addon的帮助下。

I would like to change it back to a higher value, if needed with the help of a Firefox-Addon.

或者向我的网络应用程序添加一个警告(由于几个原因,它需要更长的超时时间)。

Or add a warning to my web-application (which needs the longer timeout for several reasons).

推荐答案

p>使用,并将其放入您的 main.js

Create an addon called "response-timeout-24-hours" with the addon-sdk and put this in your main.js

const {Cc,Ci} = require("chrome");
var pref = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
console.log(pref.setIntPref("network.http.response.timeout", 3600*24));
console.log("timeout set to "+pref.getIntPref("network.http.response.timeout")+"s by response-timeout-24-hours");

这篇关于如何在Firefox中使用javascript设置network.http.response.timeout?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 21:10