зеркало из https://github.com/mozilla/pjs.git
99243 - invalid history pref entry is reset to 0, not previous value. r=ben sr=hewitt
This commit is contained in:
Родитель
c1075d3839
Коммит
ba98c6f64d
|
@ -68,15 +68,14 @@
|
|||
var maxSize = data['shistMax'].value;
|
||||
if (panelIsShown)
|
||||
maxSize = GetSHistValue();
|
||||
|
||||
if (maxSize < 0) {
|
||||
if (maxSize < 0 || isNaN(maxSize) || maxSize == "") {
|
||||
// set the pref to 0 so the UI reflects the proper value
|
||||
if (panelIsShown)
|
||||
document.getElementById("shistMax").value = "0";
|
||||
document.getElementById("shistMax").value = "50";
|
||||
else
|
||||
data['shistMax'].value = "0";
|
||||
data['shistMax'].value = "50";
|
||||
|
||||
maxSize = 0;
|
||||
maxSize = 50;
|
||||
}
|
||||
try {
|
||||
var SHistory = Components.classes["@mozilla.org/browser/shistory;1"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче