Bug 1329628 - [Empty] Part 3. Shorten the additional information by categorizing field name into certain groups. draft
authorRay Lin <ralin@mozilla.com>
Tue, 23 May 2017 17:22:30 +0800
changeset 582875 4b01fac942464d9b8d9072cf868425a84b5aa02b
parent 582874 62ac45726cd53a04010b273a4dfa149a8f67c177
child 582876 af9bd2cad856f007e1f917ae2588b8ab6d5ee1c6
push id60223
push userbmo:ralin@mozilla.com
push dateTue, 23 May 2017 09:34:08 +0000
bugs1329628
milestone55.0a1
Bug 1329628 - [Empty] Part 3. Shorten the additional information by categorizing field name into certain groups. MozReview-Commit-ID: BXIj89IuzR6
browser/extensions/formautofill/FormAutofillUtils.jsm
--- a/browser/extensions/formautofill/FormAutofillUtils.jsm
+++ b/browser/extensions/formautofill/FormAutofillUtils.jsm
@@ -49,13 +49,17 @@ this.FormAutofillUtils = {
         log.debug("Label found in input's parent or ancestor.");
         return [parent];
       }
       parent = parent.parentNode;
     } while (parent);
 
     return [];
   },
+
+  categorizeFieldNameIntoGroup(fieldName) {
+    // TODO: categorize 
+  },
 };
 
 this.log = null;
 this.FormAutofillUtils.defineLazyLogGetter(this, this.EXPORTED_SYMBOLS[0]);