Closed
Bug 435320
Opened 17 years ago
Closed 16 years ago
Add tracking support to PasswordEngine
Categories
(Cloud Services :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 468697
Future
People
(Reporter: anant, Assigned: anant)
References
Details
Attachments
(1 file)
1.62 KB,
patch
|
hello
:
review-
|
Details | Diff | Splinter Review |
PasswordEngine needs tracking support. See weave/modules/trackers.js.
Assignee | ||
Comment 1•17 years ago
|
||
We query the loginManager for the number of logins stored, and record every change as worth 15 points.
Comment 2•17 years ago
|
||
Comment on attachment 322279 [details] [diff] [review]
Add tracking support for PasswordEngine
>+ * FIXME!: Buggy, because changes in a NSLoginInfo doesn't
>+ * result in an increment of our score.
We can't know that w/o a master password, right? Is there a way to know whether a) the db has been unlocked, or b) there is no master password set at all? (that is, if we would cause the master password prompt to appear). If either of those are true, we could dig a little deeper.
>+ this._score = 0;
Do you actually need to set this._score? You just generate it in score() and return it immediately anyway, it seems superfluous to set it to an instance property and clear it in _init/reset.
r- pending tracking of edits.
Attachment #322279 -
Flags: review?(thunder) → review-
Comment 3•17 years ago
|
||
Checking for a master password isn't quite the right thing to do, because there could be different backends which don't use the MP. It might be better to use the shim from bug 433762 instead. That can give you explicit notifications of when logins are added/removed/modified.
Assignee | ||
Updated•16 years ago
|
Severity: blocker → normal
Priority: -- → P2
Comment 4•16 years ago
|
||
The password engine has a tracker now. Should this bug be closed?
Assignee | ||
Comment 5•16 years ago
|
||
Does it? I don't see it in modules/engines/passwords.js...
Assignee | ||
Comment 6•16 years ago
|
||
As a compromise we can push the patch in attachment #322279 [details] [diff] [review] in, and punt the tracking of password edits (using the shim mentioned in comment #3) to 0.3.
Comment 7•16 years ago
|
||
Let's add the tracker in the attachment, with one mod: have it artificially add to the score (say, +30), to ensure edits will sync at some point.
Comment 8•16 years ago
|
||
Plus the removal of this._score, per comment #2.
Assignee | ||
Comment 9•16 years ago
|
||
Checked-in http://hg.mozilla.org/labs/weave/index.cgi/rev/423809ba3ef9
Let's keep the bug open, but change the milestone to 0.3, so we eventually get the shim to track password edits as well.
Target Milestone: 0.2 → 0.3
Comment 10•16 years ago
|
||
Small bug: you should add 30 before normalizing to 100. The committed version could return up to 129.
Assignee | ||
Comment 11•16 years ago
|
||
Thanks for the catch, fixed http://hg.mozilla.org/labs/weave/index.cgi/rev/ab462bd0b41f
Comment 12•16 years ago
|
||
These bugs need to be triaged, removing 0.3 milestone setting.
Target Milestone: 0.3 → Future
Assignee | ||
Comment 13•16 years ago
|
||
We're tracking this in 468697
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Updated•15 years ago
|
Component: Weave → General
Product: Mozilla Labs → Weave
Updated•15 years ago
|
QA Contact: weave → general
You need to log in
before you can comment on or make changes to this bug.
Description
•