Closed Bug 435320 Opened 17 years ago Closed 16 years ago

Add tracking support to PasswordEngine

Categories

(Cloud Services :: General, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 468697
Future

People

(Reporter: anant, Assigned: anant)

References

Details

Attachments

(1 file)

PasswordEngine needs tracking support. See weave/modules/trackers.js.
We query the loginManager for the number of logins stored, and record every change as worth 15 points.
Assignee: nobody → anarayanan
Status: NEW → ASSIGNED
Attachment #322279 - Flags: review?(thunder)
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-
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.
Severity: blocker → normal
Priority: -- → P2
The password engine has a tracker now. Should this bug be closed?
Does it? I don't see it in modules/engines/passwords.js...
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.
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.
Plus the removal of this._score, per comment #2.
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
Small bug: you should add 30 before normalizing to 100. The committed version could return up to 129.
These bugs need to be triaged, removing 0.3 milestone setting.
Target Milestone: 0.3 → Future
We're tracking this in 468697
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Component: Weave → General
Product: Mozilla Labs → Weave
QA Contact: weave → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: