Bug 1120860 - Measure whether an <input type=password> is associated with a <form> in BindToTree. r=smaug

--HG--
extra : rebase_source : bbabe796a1ec1c6d545cec4dc61e51c3bba31624
This commit is contained in:
Matthew Noorenberghe 2015-03-24 10:27:56 -07:00
Родитель 67248d3882
Коммит b2a7f5ef69
2 изменённых файлов: 12 добавлений и 0 удалений

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

@ -17,6 +17,7 @@
#include "nsIRadioVisitor.h"
#include "nsIPhonetic.h"
#include "mozilla/Telemetry.h"
#include "nsIControllers.h"
#include "nsIStringBundle.h"
#include "nsFocusManager.h"
@ -4497,6 +4498,12 @@ HTMLInputElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
// And now make sure our state is up to date
UpdateState(false);
#ifdef EARLY_BETA_OR_EARLIER
if (mType == NS_FORM_INPUT_PASSWORD) {
Telemetry::Accumulate(Telemetry::PWMGR_PASSWORD_INPUT_IN_FORM, !!mForm);
}
#endif
return rv;
}

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

@ -7626,6 +7626,11 @@
"n_buckets" : 40,
"description": "Time in days each saved login was last used"
},
"PWMGR_PASSWORD_INPUT_IN_FORM": {
"expires_in_version": "never",
"kind": "boolean",
"description": "Whether an <input type=password> is associated with a <form> when it is added to a document"
},
"PWMGR_PROMPT_REMEMBER_ACTION" : {
"expires_in_version": "never",
"kind": "enumerated",