Closed
Bug 1118863
Opened 10 years ago
Closed 10 years ago
Add telemetry to know whether password saving is disabled globally
Categories
(Toolkit :: Password Manager, defect, P1)
Toolkit
Password Manager
Tracking
()
People
(Reporter: MattN, Assigned: ally, Mentored)
References
Details
Attachments
(1 file, 1 obsolete file)
1.88 KB,
patch
|
MattN
:
review+
lmandel
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta-
|
Details | Diff | Splinter Review |
We should report the value of the signon.rememberSignons preference with telemetry.
Flags: firefox-backlog+
Comment 1•10 years ago
|
||
If you can add a DXR link to this, or a pointer to a previous similar bug, this'd probably make a good Good First Bug.
Flags: needinfo?(MattN+bmo)
Reporter | ||
Comment 2•10 years ago
|
||
(In reply to Mike Hoye [:mhoye] from comment #1)
> If you can add a DXR link to this, or a pointer to a previous similar bug,
> this'd probably make a good Good First Bug.
I agree but I will be taking this bug in the iteration starting tomorrow as it's a priority to get these probes landed to kick off the password manager improvements.
Flags: needinfo?(MattN+bmo)
Reporter | ||
Updated•10 years ago
|
Points: --- → 2
Flags: qe-verify-
Updated•10 years ago
|
Priority: -- → P1
Updated•10 years ago
|
Assignee: nobody → ally
Assignee | ||
Comment 3•10 years ago
|
||
from the IRC discussion this looks right. However, I still need to test it.
Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8552118 [details] [diff] [review]
isPasswordFillDisabledv1
Review of attachment 8552118 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/passwordmgr/nsLoginManager.js
@@ +211,5 @@
> _gatherTelemetry : function() {
> let numPasswordsHist = Services.telemetry.getHistogramById("PWMGR_NUM_SAVED_PASSWORDS");
> numPasswordsHist.clear();
> numPasswordsHist.add(this.countLogins("", "", ""));
> + Services.telemetry.getHistogramById("PWMGR_ARE_SAVED_PW_DISABLED").add(this._remember);
I think you also want to clear it like I do with the other (now that you switched from a flag) since gather-telemetry can be called multiple times in a session.
This is recording the opposite of what it says now :P. I think we should rename the histogram to record the "positive" so that up-and-to-the-right on the graph means an increase in sessions with saving enabled. e.g. something like PWMGR_SAVING_ENABLED. Don't forget to update the probe description.
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8552118 -
Attachment is obsolete: true
Attachment #8552720 -
Flags: review?(MattN+bmo)
Reporter | ||
Comment 6•10 years ago
|
||
Comment on attachment 8552720 [details] [diff] [review]
isPWDEnabledv2
Review of attachment 8552720 [details] [diff] [review]:
-----------------------------------------------------------------
It works!
::: toolkit/components/passwordmgr/nsLoginManager.js
@@ +211,5 @@
> _gatherTelemetry : function() {
> let numPasswordsHist = Services.telemetry.getHistogramById("PWMGR_NUM_SAVED_PASSWORDS");
> numPasswordsHist.clear();
> numPasswordsHist.add(this.countLogins("", "", ""));
> + let isPwdSavedEnabledHist = Services.telemetry.getHistogramById("PWMGR_SAVING_ENABLED");
Nit: add a newline above this one to separate the probes
Attachment #8552720 -
Flags: review?(MattN+bmo) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Comment 8•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Updated•10 years ago
|
Iteration: --- → 38.1 - 26 Jan
Reporter | ||
Comment 9•10 years ago
|
||
Comment on attachment 8552720 [details] [diff] [review]
isPWDEnabledv2
Approval Request Comment
[Feature/regressing bug #]: Improvements to password manager in 2015 - Bug 1121127
[User impact if declined]: Possibly less ideal decisions based on lack of data.
[Describe test coverage new/current, TreeHerder]: No tests for the telemetry since it's outside the normal code flow so shouldn't break other aspects of password manager if an exception occurs. No problems have been reported on Nightly and data looks good there.
[Risks and why]: Low risk since it's new code only run during the telemetry gathering phase.
[String/UUID change made/needed]: None
Attachment #8552720 -
Flags: approval-mozilla-beta?
Attachment #8552720 -
Flags: approval-mozilla-aurora?
Comment 10•10 years ago
|
||
Comment on attachment 8552720 [details] [diff] [review]
isPWDEnabledv2
I'm not sure about the value of uplifting this patch to Beta at this point in the cycle. (I'll leave it to Sylvestre to make the call on that.) Happy to take this on Aurora.
Aurora+
Attachment #8552720 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
Comment on attachment 8552720 [details] [diff] [review]
isPWDEnabledv2
Too late for beta.
Attachment #8552720 -
Flags: approval-mozilla-beta? → approval-mozilla-beta-
You need to log in
before you can comment on or make changes to this bug.
Description
•