'crypto' is not defined JavaScript error

VERIFIED WORKSFORME

Status

()

Core
Security: PSM
P3
normal
VERIFIED WORKSFORME
19 years ago
10 years ago

People

(Reporter: Christine Begle, Assigned: Mark Welch)

Tracking

1.0 Branch
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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.
(Reporter)

Comment 1

19 years ago
i believe javi fixed this; in any case, this now worksforme.
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → WORKSFORME

Comment 2

19 years ago
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.

Comment 3

19 years ago
there is a seperate bug for implementing the cryto object.

http://bugzilla.mozilla.org/show_bug.cgi?id=13794

Comment 4

18 years ago
Verified fixed.
Status: RESOLVED → VERIFIED

Updated

14 years ago
Component: Security: PSM → Security: PSM
Product: PSM → Core

Updated

10 years ago
Version: psm1.1 → 1.0 Branch
You need to log in before you can comment on or make changes to this bug.