mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 10:12:59 +00:00
Bug 236782 Make pipelining preferences visibly lockable p=brian.lu@sun.com r=me sr=bz
This commit is contained in:
parent
9129139eac
commit
18a3e07505
@ -44,7 +44,10 @@ function checkPipelining()
|
||||
var enableKeepAlive = document.getElementById("enableKeepAlive");
|
||||
var enablePipelining = document.getElementById("enablePipelining");
|
||||
|
||||
var doDisable = !(enableHTTP11.selected && enableKeepAlive.checked);
|
||||
var prefString = enablePipelining.getAttribute("prefstring");
|
||||
var isLocked = parent.hPrefWindow.getPrefIsLocked(prefString);
|
||||
|
||||
var doDisable = !(enableHTTP11.selected && enableKeepAlive.checked) || isLocked;
|
||||
enablePipelining.disabled = doDisable;
|
||||
} catch(e) {}
|
||||
}
|
||||
@ -56,7 +59,10 @@ function checkPipeliningProxy()
|
||||
var enableKeepAlive = document.getElementById("enableKeepAliveProxy");
|
||||
var enablePipelining = document.getElementById("enablePipeliningProxy");
|
||||
|
||||
var doDisable = !(enableHTTP11.selected && enableKeepAlive.checked);
|
||||
var prefString = enablePipelining.getAttribute("prefstring");
|
||||
var isLocked = parent.hPrefWindow.getPrefIsLocked(prefString);
|
||||
|
||||
var doDisable = !(enableHTTP11.selected && enableKeepAlive.checked) || isLocked;
|
||||
enablePipelining.disabled = doDisable;
|
||||
} catch(e) {}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user