Cardbook removes all other autocomplete providers (fix included)
Hi,
this function: https://gitlab.com/CardBook/CardBook/blob/master/chrome/content/autocomplete/cardbookAutocomplete.js#L116-131
removes any value which has been added to the autocompletesearch
attribute, which removes any other autocomplete provider. An easy fix would be to replace the function with this:
setCompletion: function(aTextBox) {
try {
let attr = aTextBox.getAttribute('autocompletesearch');
if (cardbookPreferences.getBoolPref("extensions.cardbook.autocompletion")) {
if (attr.indexOf("addrbook-cardbook") == -1) aTextBox.setAttribute('autocompletesearch', attr + ' addrbook-cardbook');
} else {
aTextBox.setAttribute('autocompletesearch', attr.replace("addrbook-cardbook", "").trim());
}
if (cardbookPreferences.getBoolPref("extensions.cardbook.debugMode") || cardbookPreferences.getBoolPref("extensions.cardbook.autocompleteShowAddressbook")) {
aTextBox.showCommentColumn = true;
} else {
aTextBox.showCommentColumn = false;
}
} catch(e) {
wdw_cardbooklog.updateStatusProgressInformation("cardbookAutocomplete.setCompletion error : " + e, "Error");
};
},
Edited by John Bieling