Closed Bug 395150 Opened 17 years ago Closed 17 years ago

fillDoc() shouldn't trudge through each form if there are no stored logins for site

Categories

(Toolkit :: Password Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta1

People

(Reporter: Dolske, Assigned: Dolske)

Details

Attachments

(1 file)

Bug 378667 added a countLogins() interface, which can be used to count the number of logins stored for a site without needing to compare against a specific actionURL. This can be used by fillDoc() to bail out early when there are no logins stored for the site (it currently steps through each form, because findLogins() needs a specific actionURL).
Attachment #279869 - Flags: review?(gavin.sharp)
Attachment #279869 - Flags: review?(gavin.sharp) → review+
Assignee: nobody → dolske
Attachment #279869 - Flags: approval1.9?
Attachment #279869 - Flags: approval1.9? → approval1.9+
Checked in.

cvs commit: Examining toolkit/components/passwordmgr/src
Checking in toolkit/components/passwordmgr/src/nsLoginManager.js;
/cvsroot/mozilla/toolkit/components/passwordmgr/src/nsLoginManager.js,v  <--  nsLoginManager.js
new revision: 1.19; previous revision: 1.18
done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 M9
This seems to have improved Tp by 1-2%!  Most excellent.
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: