Closed Bug 993197 Opened 11 years ago Closed 11 years ago

Asynchronize nsILoginManager::autoCompleteSearch

Categories

(Toolkit :: Password Manager, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33
Tracking Status
e10s + ---

People

(Reporter: mrbkap, Assigned: mrbkap)

References

Details

Attachments

(1 file)

For bug 949617, we need to be able to asynchronously fill in logins for nsLoginManager-managed login fields. Currently, the code expects that to be a synchronous action, which is less than ideal.
Attached patch Patch v1Splinter Review
One thing that I know I'm not doing is calling StopAutoCompleteSearch on the login manager when we call nsFormFillController::StopSearch. Is that important? https://tbpl.mozilla.org/?tree=Try&rev=4df854c3e162
Attachment #8403025 - Flags: review?(dolske)
Assignee: nobody → mrbkap
Mass tracking-e10s flag change. Filter bugmail on "2be0fcce-e36a-4e2c-aa80-0e3d33eb5406".
tracking-e10s: --- → +
Comment on attachment 8403025 [details] [diff] [review] Patch v1 Review of attachment 8403025 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/passwordmgr/nsLoginManager.js @@ +13,5 @@ > > XPCOMUtils.defineLazyModuleGetter(this, > "LoginManagerContent", "resource://gre/modules/LoginManagerContent.jsm"); > > +var debug = true; I think you forgot to remove this. @@ +465,5 @@ > + // filter logins without a username, since that's confusing to see > + // in the dropdown and we can't autocomplete them anyway. > + for (let i = 0; i < logins.length; i++) { > + var username = logins[i].username.toLowerCase(); > + log(username); I think you forgot to remove this too.
Attachment #8403025 - Flags: review?(dolske) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
sorry had to back this out from mozilla-central in https://tbpl.mozilla.org/?onlyunstarred=1&rev=83f9b25520bf since one of this checkins seems to have caused Bug 1030663 which is a frequent test failurew now
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Depends on: 1061762
No longer depends on: 1061762
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: