Closed Bug 30357 Opened 25 years ago Closed 25 years ago

'crypto' is not defined JavaScript error

Categories

(Core :: Security: PSM, defect, P3)

1.0 Branch
x86
Windows NT
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: cbegle, Assigned: mw)

Details

When I open PSM and perform some actions in the PSM, I get a JavaScript error in 
the console that says 'crypto' is not defined:

[ensuring channel]: 
http://3:nonce11311012742715611294@127.0.0.1:3228/get?baseRef=secadvtopstyle
JavaScript Error: ReferenceError: crypto is not defined
URL: http://3:nonce11311012742715611294@127.0.0.1:3228/get?baseRef=blank
LineNo: 9

I'm guessing from the page location that the psm daemon is serving this page.

I also get this error when I try to import a certificate.
- in the certificates | mine pane, click the restore button
- select my p12 certificate
- enter the portable security password
- enter my PSM PIN
- get the errors below.  cert is not imported.
JavaScript Error: ReferenceError: crypto is not defined
URL: 
http://3:nonce11311012742715611294@127.0.0.1:3228/formsubmit_handler?formName=ce
rt_mine_form&ta
rget=4&restore=Restore
LineNo: 8

JavaScript Error: ReferenceError: crypto is not defined
URL: 
http://3:nonce11311012742715611294@127.0.0.1:3228/formsubmit_handler?formName=ce
rt_mine_form&ta
rget=4&restore=Restore
LineNo: 21

dougt thought it might be a client thing, but now that i look the PSM page 
source, i am thinking that's not the case.
i believe javi fixed this; in any case, this now worksforme.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
I worked around this problem with the PSM UI for M14.

There is still the need to port the crypto JavaScript object that we have in 
Communicator 4.7x to Mozilla.  There should be a separate bug for that.
there is a seperate bug for implementing the cryto object.

http://bugzilla.mozilla.org/show_bug.cgi?id=13794
Verified fixed.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm1.1 → 1.0 Branch
You need to log in before you can comment on or make changes to this bug.