Closed Bug 113064 Opened 23 years ago Closed 22 years ago

Smartcards add to launch time

Categories

(Core Graveyard :: Security: UI, defect, P2)

1.0 Branch
x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED WORKSFORME
psm2.4

People

(Reporter: lord, Assigned: ssaux)

References

Details

I'm currently trying to use a smartcard on my Mozilla profile.  When the
smartcard is plugged in, it takes an extra 5+ seconds to launch the client.  

Using a smartcard should not add any noticeable time to launch.

Further, delaying the 5+ second penalty until the user first needs to access the
smartcard doesn't seem like a viable solution either since many users will
assume that something has gone wrong and will start to fiddle with the card.

Perhaps the trick is to somehow hide the smartcard initialization between launch
and first use of the card so the user is never aware that it's taking place.
With the new delayed PSM/NSS init, I haven't found it very noticeable as the
added time (which I should measure) is part of some action that itself is
expected to take some time.

I propose working with ActivCard to review how they architect their driver. I've
noticed in the debugger that ns-acpkcs.dll causes an extra 5 or 6 ActivCard dll
to be loaded as well. It's quite possible that:

1) The ActivCard driver pulls in functionality that is never used by Netscape (I
wouldn't be surprise that CAPI stuff is loaded) because they have created
something  that is one size fits all.  We can ask them for a strict pkcs11
driver that is as small as possible, and maybe link in that dll any other
libraries the pcks 11 functionality requires.

2) They do too much initialization (probably because of 1) when the library is
loaded.

3) NSS can be improved in the way the load the ActivCard driver. Maybe we just
register and wait till the driver is actually needed.

It would probably require a substantial rearchitecting of NSS to separate the
initialization of hardware device drivers from the initialization of NSS.
Priority: -- → P2
Target Milestone: --- → 2.2
nsbeta1
Keywords: nsbeta1
cc ActivCard contact.
Keywords: nsbeta1nsbeta1-
Blocks: smartcard
Keywords: nsbeta1
Keywords: nsbeta1-
Marking works for me. Startup time is just as fast with or without an ActivCard
installed, and is not accessed during startup, (by watching the icon in the
system tray), whether or not I am signed into the card or not.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Target Milestone: 2.2 → 2.4
Version: 2.1 → 2.4
Verified.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm2.4 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.