Bug 595170 - Some single line inputs break the form filler tool [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-09-13 18:28:33 +02:00
parent a7bf64b390
commit 3b9fe61519

View File

@ -139,8 +139,10 @@ FormAutoComplete.prototype = {
}, },
autoCompleteSearch: function autoCompleteSearch(aName, aQuery, aField, aPrev) { autoCompleteSearch: function autoCompleteSearch(aName, aQuery, aField, aPrev) {
LOG("autocomplete search", Array.slice(arguments)); if (!Services.prefs.getBoolPref("browser.formfill.enable"))
return;
LOG("autocomplete search", Array.slice(arguments));
let result = Cc["@mozilla.org/autocomplete/simple-result;1"].createInstance(Ci.nsIAutoCompleteSimpleResult); let result = Cc["@mozilla.org/autocomplete/simple-result;1"].createInstance(Ci.nsIAutoCompleteSimpleResult);
result.setSearchString(aQuery); result.setSearchString(aQuery);