Bug 1372614
- Remove HTTP Pipelining preferences UI after bug 1340655 removed support for it. r=frg
This commit is contained in:
Родитель
8d376fe995
Коммит
6132f31500
|
@ -7,27 +7,9 @@ var gLightningUAold;
|
|||
|
||||
function Startup()
|
||||
{
|
||||
CheckPipelining();
|
||||
CheckPipeliningProxy();
|
||||
CheckLightningUA();
|
||||
}
|
||||
|
||||
function CheckPipelining()
|
||||
{
|
||||
var prefHTTPVersion = document.getElementById("network.http.version");
|
||||
|
||||
var enabled = prefHTTPVersion.value == "1.1";
|
||||
EnableElementById("enablePipelining", enabled, false);
|
||||
}
|
||||
|
||||
function CheckPipeliningProxy()
|
||||
{
|
||||
var prefHTTPVersion = document.getElementById("network.http.proxy.version");
|
||||
|
||||
var enabled = prefHTTPVersion.value == "1.1";
|
||||
EnableElementById("enablePipeliningProxy", enabled, false);
|
||||
}
|
||||
|
||||
// Lightning adds a UA token if calendar.useragent.extra is not empty.
|
||||
// Checkbox is visible if Lightning is installed and enabled.
|
||||
// Checkbox is checked if the pref contains any non-whitespace character.
|
||||
|
|
|
@ -12,18 +12,10 @@
|
|||
<preferences>
|
||||
<preference id="network.http.version"
|
||||
name="network.http.version"
|
||||
type="string"
|
||||
onchange="CheckPipelining();"/>
|
||||
<preference id="network.http.pipelining"
|
||||
name="network.http.pipelining"
|
||||
type="bool"/>
|
||||
type="string"/>
|
||||
<preference id="network.http.proxy.version"
|
||||
name="network.http.proxy.version"
|
||||
type="string"
|
||||
onchange="CheckPipeliningProxy();"/>
|
||||
<preference id="network.http.proxy.pipelining"
|
||||
name="network.http.proxy.pipelining"
|
||||
type="bool"/>
|
||||
type="string"/>
|
||||
<preference id="general.useragent.compatMode.firefox"
|
||||
name="general.useragent.compatMode.firefox"
|
||||
type="bool"/>
|
||||
|
@ -47,13 +39,6 @@
|
|||
label="&prefEnableHTTP11.label;"
|
||||
accesskey="&prefEnableHTTP11.accesskey;"/>
|
||||
</radiogroup>
|
||||
|
||||
<separator class="thin"/>
|
||||
|
||||
<checkbox id="enablePipelining"
|
||||
label="&prefEnablePipelining.label;"
|
||||
accesskey="&prefEnablePipelining.accesskey;"
|
||||
preference="network.http.pipelining"/>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
|
||||
|
@ -69,19 +54,10 @@
|
|||
label="&prefEnableHTTP11.label;"
|
||||
accesskey="&prefEnableHTTP11Proxy.accesskey;"/>
|
||||
</radiogroup>
|
||||
|
||||
<separator class="thin"/>
|
||||
|
||||
<checkbox id="enablePipeliningProxy"
|
||||
label="&prefEnablePipelining.label;"
|
||||
accesskey="&prefEnablePipeliningProxy.accesskey;"
|
||||
preference="network.http.proxy.pipelining"/>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
</hbox>
|
||||
|
||||
<description>&prefPipeWarning;</description>
|
||||
|
||||
<separator class="thin"/>
|
||||
|
||||
<groupbox>
|
||||
|
|
|
@ -486,18 +486,12 @@
|
|||
Choose the HTTP version and options for direct and proxy connections.
|
||||
<ul>
|
||||
<li><strong>Use HTTP 1.0</strong>: Choose this to use the original
|
||||
version of HTTP, standardized in 1996.</li>
|
||||
<li><strong>Use HTTP 1.1</strong>: Choose this to use the new version of
|
||||
HTTP, which offers performance enhancements, including more efficient
|
||||
use of HTTP connections, better support for client-side caching,
|
||||
multiple HTTP requests (pipelining), and more refined control over
|
||||
cache expiration and replacement policies.</li>
|
||||
<li><strong>Enable Pipelining</strong>: Select this to
|
||||
enable pipelining, which allows for more than one HTTP request to be
|
||||
sent to the server at once, reducing delays loading web pages.
|
||||
|
||||
<p><strong>Note</strong>: Pipelining is only available with
|
||||
HTTP 1.1.</p></li>
|
||||
version of HTTP, standardized in 1996. This setting is mostly intended
|
||||
for compatibility reasons with proxy or older web servers.</li>
|
||||
<li><strong>Use HTTP 1.1</strong>: Choose this to use the current version
|
||||
of HTTP, which offers performance enhancements, including more efficient
|
||||
use of HTTP connections, better support for client-side caching, and
|
||||
more refined control over cache expiration and replacement policies.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>User Agent String</strong>:
|
||||
|
|
|
@ -13,11 +13,7 @@
|
|||
<!ENTITY prefEnableHTTP11.label "Use HTTP 1.1">
|
||||
<!ENTITY prefEnableHTTP11.accesskey "E">
|
||||
<!ENTITY prefEnableHTTP11Proxy.accesskey "T">
|
||||
<!ENTITY prefEnablePipelining.label "Enable Pipelining">
|
||||
<!ENTITY prefEnablePipelining.accesskey "P">
|
||||
<!ENTITY prefEnablePipeliningProxy.accesskey "N">
|
||||
<!ENTITY prefPara "HTTP connections may be fine-tuned using these options to enhance either performance or compatibility. Some proxy servers, for example, are known to require HTTP/1.0 (see the release notes for details).">
|
||||
<!ENTITY prefPipeWarning "WARNING: pipelining is an experimental feature, designed to improve page-load performance, that is unfortunately not well supported by some web servers and proxies.">
|
||||
<!ENTITY prefUseragent.label "User Agent String">
|
||||
<!ENTITY prefFirefoxCompat.label "Advertise Firefox compatibility">
|
||||
<!ENTITY prefFirefoxCompat.accesskey "F">
|
||||
|
|
Загрузка…
Ссылка в новой задаче