diff --git a/suite/common/pref/pref-http.js b/suite/common/pref/pref-http.js index 368d61248377..e1cab1b58b05 100644 --- a/suite/common/pref/pref-http.js +++ b/suite/common/pref/pref-http.js @@ -40,16 +40,28 @@ function checkPipelining() { try { - var browserEnableHTTP11 = document.getElementById("httpVersion11"); - var browserEnableKeepAlive = document.getElementById("browserEnableKeepAlive"); - var browserEnablePipelining = document.getElementById("browserEnablePipelining"); + var enableHTTP11 = document.getElementById("httpVersion11"); + var enableKeepAlive = document.getElementById("enableKeepAlive"); + var enablePipelining = document.getElementById("enablePipelining"); - if (browserEnableHTTP11.selected && browserEnableKeepAlive.checked) { - browserEnablePipelining.removeAttribute("disabled"); - } else { - browserEnablePipelining.setAttribute("disabled", "true"); - browserEnablePipelining.setAttribute("checked", "false"); - } + var doDisable = !(enableHTTP11.selected && enableKeepAlive.checked); + enablePipelining.disabled = doDisable; + if (doDisable) + enablePipelining.checked = false; + } catch(e) {} +} + +function checkPipeliningProxy() +{ + try { + var enableHTTP11 = document.getElementById("httpVersion11Proxy"); + var enableKeepAlive = document.getElementById("enableKeepAliveProxy"); + var enablePipelining = document.getElementById("enablePipeliningProxy"); + + var doDisable = !(enableHTTP11.selected && enableKeepAlive.checked); + enablePipelining.disabled = doDisable; + if (doDisable) + enablePipelining.checked = false; } catch(e) {} } diff --git a/suite/common/pref/pref-http.xul b/suite/common/pref/pref-http.xul index ec7b898dbe4b..ce6d851af37c 100644 --- a/suite/common/pref/pref-http.xul +++ b/suite/common/pref/pref-http.xul @@ -41,7 +41,7 @@ - - + + + - - - + + + + + + + + + + + + + + + + + diff --git a/suite/locales/en-US/chrome/common/pref/pref-http.dtd b/suite/locales/en-US/chrome/common/pref/pref-http.dtd index 830ad7978fc0..5705c855de02 100644 --- a/suite/locales/en-US/chrome/common/pref/pref-http.dtd +++ b/suite/locales/en-US/chrome/common/pref/pref-http.dtd @@ -2,16 +2,21 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +