Bug 1595649 - Fix disabling auto-completion on a per-directory basis; r=mkmelin
--HG-- extra : rebase_source : 6ae1801d6d191f7fd7d3646501a787f9018e08dc extra : histedit_source : 00de02ff98bafad495072221ec27bad040d4976f
This commit is contained in:
Родитель
4961701620
Коммит
e47ee1057d
|
@ -770,7 +770,10 @@ var bookPrototype = {
|
|||
return newCard;
|
||||
},
|
||||
useForAutocomplete(identityKey) {
|
||||
return Services.prefs.getBoolPref("mail.enable_autocomplete");
|
||||
return (
|
||||
Services.prefs.getBoolPref("mail.enable_autocomplete") &&
|
||||
this.getBoolValue("enable_autocomplete", true)
|
||||
);
|
||||
},
|
||||
addMailList(list) {
|
||||
if (!list.isMailList) {
|
||||
|
|
|
@ -59,11 +59,15 @@ function check_ab(abConfig) {
|
|||
Assert.equal(AB.useForAutocomplete(""), true);
|
||||
|
||||
Services.prefs.setBoolPref("mail.enable_autocomplete", false);
|
||||
|
||||
Assert.equal(AB.useForAutocomplete(""), false);
|
||||
|
||||
Services.prefs.setBoolPref("mail.enable_autocomplete", true);
|
||||
Assert.equal(AB.useForAutocomplete(""), true);
|
||||
|
||||
AB.setBoolValue("enable_autocomplete", false);
|
||||
Assert.equal(AB.useForAutocomplete(""), false);
|
||||
|
||||
AB.setBoolValue("enable_autocomplete", true);
|
||||
Assert.equal(AB.useForAutocomplete(""), true);
|
||||
|
||||
// Test - check getting default preferences
|
||||
|
|
Загрузка…
Ссылка в новой задаче