Bug 1417336 - [Form Autofill] Enable credit card autofill by default on beta build. r=steveck draft
authorLuke Chang <lchang@mozilla.com>
Wed, 15 Nov 2017 16:29:38 +0800
changeset 698081 45f0c6d9601421b41c56d2bd3182a89a695c5913
parent 697940 f0c0fb9182d695081edf170d8e3bcb8164f2c96a
child 740292 ba6ba36dd55ca7611970999a79f31806df09beef
push id89197
push userbmo:lchang@mozilla.com
push dateWed, 15 Nov 2017 08:31:42 +0000
reviewerssteveck
bugs1417336
milestone59.0a1
Bug 1417336 - [Form Autofill] Enable credit card autofill by default on beta build. r=steveck MozReview-Commit-ID: AOM6vqw2JvY
browser/app/profile/firefox.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1682,27 +1682,25 @@ pref("browser.crashReports.unsubmittedCh
 pref("browser.crashReports.unsubmittedCheck.autoSubmit", false);
 
 // Preferences for the form autofill system extension
 // The truthy values of "extensions.formautofill.available" are "on" and "detect",
 // any other value means autofill isn't available.
 // "detect" means it's enabled if conditions defined in the extension are met.
 #ifdef NIGHTLY_BUILD
 pref("extensions.formautofill.available", "on");
+pref("extensions.formautofill.creditCards.available", true);
 #elif MOZ_UPDATE_CHANNEL == release
 pref("extensions.formautofill.available", "staged-rollout");
+pref("extensions.formautofill.creditCards.available", false);
 #else
 pref("extensions.formautofill.available", "detect");
+pref("extensions.formautofill.creditCards.available", true);
 #endif
 pref("extensions.formautofill.addresses.enabled", true);
-#ifdef NIGHTLY_BUILD
-pref("extensions.formautofill.creditCards.available", true);
-#else
-pref("extensions.formautofill.creditCards.available", false);
-#endif
 pref("extensions.formautofill.creditCards.enabled", true);
 // Pref for shield/heartbeat to recognize users who have used Credit Card
 // Autofill. The valid values can be:
 // 0: none
 // 1: submitted a manually-filled credit card form (but didn't see the doorhanger
 //    because of a duplicate profile in the storage)
 // 2: saw the doorhanger
 // 3: submitted an autofill'ed credit card form