Bug 1385753 - [Form Autofill] Group tel-related fields when calculating the secondary label. r=ralin draft
authorLuke Chang <lchang@mozilla.com>
Mon, 31 Jul 2017 13:59:49 +0800
changeset 618277 790354b93eb61acbcad2a2d5b808dccf5a090262
parent 618186 6d1b50a370b4adffbb1ee73b9f51707c90d6a2b1
child 640023 42720908593343fc330e74ee0146b30a0bc4f6c9
push id71283
push userbmo:lchang@mozilla.com
push dateMon, 31 Jul 2017 06:03:05 +0000
reviewersralin
bugs1385753
milestone56.0a1
Bug 1385753 - [Form Autofill] Group tel-related fields when calculating the secondary label. r=ralin MozReview-Commit-ID: GnltrVH43jf
browser/extensions/formautofill/ProfileAutoCompleteResult.jsm
--- a/browser/extensions/formautofill/ProfileAutoCompleteResult.jsm
+++ b/browser/extensions/formautofill/ProfileAutoCompleteResult.jsm
@@ -175,16 +175,25 @@ class AddressResult extends ProfileAutoC
         "address-line1",
         "address-line2",
         "address-line3",
       ],
       "country-name": [
         "country",
         "country-name",
       ],
+      "tel": [
+        "tel",
+        "tel-country-code",
+        "tel-national",
+        "tel-area-code",
+        "tel-local",
+        "tel-local-prefix",
+        "tel-local-suffix",
+      ],
     };
 
     const secondaryLabelOrder = [
       "street-address",  // Street address
       "name",            // Full name
       "address-level2",  // City/Town
       "organization",    // Company or organization name
       "address-level1",  // Province/State (Standardized code if possible)