зеркало из https://github.com/mozilla/pjs.git
fixes bug 142874 "Remove Accept-Encoding from Networking prefs panel"
patch=walk84 r=caillon sr=darin
This commit is contained in:
Родитель
b87c1d0419
Коммит
4e3187b8b7
|
@ -61,19 +61,3 @@ function checkPipeliningProxy()
|
|||
} catch(e) {}
|
||||
}
|
||||
|
||||
/* Function to restore pref values to application defaults */
|
||||
function restoreAcceptEncoding()
|
||||
{
|
||||
try {
|
||||
var prefService = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefService);
|
||||
var prefs = prefService.getDefaultBranch(null);
|
||||
|
||||
/* get the current pref setting */
|
||||
var prefValue = prefs.getCharPref("network.http.accept-encoding");
|
||||
var editfield = document.getElementById("acceptEncodingString");
|
||||
if (editfield)
|
||||
editfield.value = prefValue;
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
|
|
|
@ -51,8 +51,7 @@
|
|||
<![CDATA[
|
||||
var _elementIDs = ["httpVersion", "enableKeepAlive", "enablePipelining",
|
||||
"httpVersionProxy",
|
||||
"enableKeepAliveProxy", "enablePipeliningProxy",
|
||||
"acceptEncodingString"];
|
||||
"enableKeepAliveProxy", "enablePipeliningProxy"];
|
||||
]]>
|
||||
</script>
|
||||
|
||||
|
@ -105,19 +104,5 @@
|
|||
</vbox>
|
||||
</groupbox>
|
||||
</hbox>
|
||||
|
||||
<groupbox>
|
||||
<caption label="&acceptEncoding.label;"/>
|
||||
<vbox class="box-padded">
|
||||
<textbox id="acceptEncodingString" flex="1"
|
||||
prefstring="network.http.accept-encoding"/>
|
||||
<hbox autostretch="never">
|
||||
<button label="&resetButton.label;"
|
||||
accesskey="&resetButton.accesskey;"
|
||||
oncommand="restoreAcceptEncoding();">
|
||||
</button>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
</page>
|
||||
|
||||
|
|
|
@ -16,7 +16,3 @@
|
|||
<!ENTITY prefEnablePipelining.label "Enable Pipelining">
|
||||
<!ENTITY prefEnablePipelining.accesskey "P">
|
||||
<!ENTITY prefEnablePipeliningProxy.accesskey "I">
|
||||
<!ENTITY acceptEncoding.label "Accept-Encoding:">
|
||||
<!ENTITY acceptEncoding.accesskey "A">
|
||||
<!ENTITY resetButton.label "Restore Default">
|
||||
<!ENTITY resetButton.accesskey "R">
|
||||
|
|
Загрузка…
Ссылка в новой задаче