Closed Bug 321258 Opened 19 years ago Closed 14 years ago

loading pkcs11 modules. Browse button doesn't seem to work

Categories

(Firefox :: Security, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 496013

People

(Reporter: ckannan, Assigned: KaiE)

References

Details

(Whiteboard: [kerh-bra])

Platform: Mac OS X 10.4.3
Browser: Firefox 1.5

If I have a pkcs11 module that I want to load , I follow these steps to load it:

(1) Navigate to 
firefox Preferences --> Advanced --> Security --> Security Devices --> Load

(2) Enter pkcs11 module name: testpkcs11

(3) Enter module file name: 
Select Browse Button to find the  pkcs11 library in the local file system.
Select the file and click Open.

I see garbage now in the "Enter module file name:" Section.
Summary: loading pkcs11 modules. Browse button doesn't seem to work → MAC OS X: loading pkcs11 modules. Browse button doesn't seem to work
OS: Other → MacOS X
Summary: MAC OS X: loading pkcs11 modules. Browse button doesn't seem to work → loading pkcs11 modules. Browse button doesn't seem to work
I can confirm the above bug with Mac OS 10.4.9 and Firefox 2.0.0.4.

I tried bypassing the bug by typing the full path of the module directly.  It still did not load.  Enabling debug printout with "NSPR_LOG_MODULES=all:5" and running under gdb, I get the following completely unhelpful printout:

-1610559520[1907120]: DOCSHELL 172dc7b0 destroyed
Reading symbols for shared libraries .. done
-1610559520[1907120]: Loaded library /Library/OpenSC/lib/opensc-pkcs11.so (load lib)
-1610559520[1907120]: Unloaded library /Library/OpenSC/lib/opensc-pkcs11.so
-1610559520[1907120]: DOCSHELL 172dc7b0 created
-1610559520[1907120]: DOMWINDOW 175bea10 created outer=0
-1610559520[1907120]: DOCUMENT 257f000 created
-1610559520[1907120]: DOCUMENT 257f000 ResetToURI about:blank

In addition I can say that the pkcs11 library I was trying to use works fine with other open source software.
Whiteboard: [kerh-bra]
It is still not working on OS X 10.5.6 Intel, Firefox 3.0.7 and Thunderbird 2.0.0.16
Confirm the problem still exists.

For a while it was possible to add modules if you typed the full path in by hand, but that appears to be broken once again.
Flags: in-testsuite+
Typing the full path by hand works partially - the best success rate is with a fresh started instance of Firefox or Thunderbird. 
Unfortunately it is rather hard to guess why it still fails at random times. 
(See bug 490458 - the error description for the loading procedure could provide more information).
It looks like this bug has been fixed. I just tested the file selection box in Firefox 3.5.6 on Snow Leopard and the PKCS#11 filename is no more corrupted.

Maybe this bug has been corrected as a side effect of something else. I propose to close it now.
This is probably a dupe of bug 496013.
(In reply to comment #7)
> This is probably a dupe of bug 496013.

I agree
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.