From b3802bb95bc56ec3d415546060729e52deccec56 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 9 May 2017 14:38:40 +0200 Subject: [PATCH] Backed out changeset d0669259020b (bug 1362937) for causing merge conflicts when merging to m-c --- browser/extensions/formautofill/ProfileStorage.jsm | 2 +- .../extensions/formautofill/test/unit/test_profileStorage.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/browser/extensions/formautofill/ProfileStorage.jsm b/browser/extensions/formautofill/ProfileStorage.jsm index 9a70487a53ac..2b0617158884 100644 --- a/browser/extensions/formautofill/ProfileStorage.jsm +++ b/browser/extensions/formautofill/ProfileStorage.jsm @@ -284,7 +284,7 @@ ProfileStorage.prototype = { return !!name; } - return name && name.toLowerCase().startsWith(lcSearchString); + return name.toLowerCase().startsWith(lcSearchString); }); log.debug("getByFilter: Returning", result.length, "result(s)"); diff --git a/browser/extensions/formautofill/test/unit/test_profileStorage.js b/browser/extensions/formautofill/test/unit/test_profileStorage.js index 3ec5ffe0bd94..52c7a8e203a7 100644 --- a/browser/extensions/formautofill/test/unit/test_profileStorage.js +++ b/browser/extensions/formautofill/test/unit/test_profileStorage.js @@ -143,11 +143,6 @@ add_task(function* test_getByFilter() { filter = {info: {fieldName: "street-address"}, searchString: ".*"}; profiles = profileStorage.getByFilter(filter); do_check_eq(profiles.length, 0); - - // Prevent broken while searching the property that is not existed. - filter = {info: {fieldName: "tel"}, searchString: "1"}; - profiles = profileStorage.getByFilter(filter); - do_check_eq(profiles.length, 0); }); add_task(function* test_add() {