Bug 1386959 - [Form Autofill] Add probe for form autofill availability. r=francois,lchang

MozReview-Commit-ID: KPOBxmHOiuK

--HG--
extra : rebase_source : d56176249f8b5417151a4953b080ae2a8d2acd81
This commit is contained in:
steveck-chung 2017-08-14 11:56:19 +08:00
Родитель 928155d075
Коммит 4006388b95
2 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -68,6 +68,7 @@ function startup(data) {
// reset the sync related prefs incase the feature was previously available
// but isn't now.
Services.prefs.clearUserPref("services.sync.engine.addresses.available");
Services.telemetry.scalarSet("formautofill.availability", false);
return;
}
@ -89,6 +90,7 @@ function startup(data) {
// When it's true, "element.autocomplete" will return tokens we currently
// support -- otherwise it'll return an empty string.
Services.prefs.setBoolPref("dom.forms.autocomplete.formautofill", true);
Services.telemetry.scalarSet("formautofill.availability", true);
// This pref determines whether the "addresses" sync engine is available
// (ie, whether it is shown in any UI etc) - it *does not* determine whether

Просмотреть файл

@ -786,6 +786,21 @@ gfx.advanced.layers:
- 'main'
# The following section contains the form autofill related scalars.
formautofill:
availability:
bug_numbers:
- 1386959
description: A boolean sent once per session to represent whether the formautofill is available in the build
expires: never
kind: boolean
notification_emails:
- autofill@lists.mozilla.org
- jcheng@mozilla.com
- chsiang@mozilla.com
release_channel_collection: opt-out
record_in_processes:
- 'main'
formautofill.addresses:
fill_type_manual:
bug_numbers: