Using typeof(crypto.algorithms) will crash browser

VERIFIED WORKSFORME

Status

Core Graveyard
Security: UI
P3
major
VERIFIED WORKSFORME
18 years ago
2 years ago

People

(Reporter: Henrik Gemal, Assigned: David P. Drinan)

Tracking

1.0 Branch
x86
Windows 2000

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

18 years ago
if you go to:
http://gemal.dk/browserspy/psm.html
Mozilla will hang!

The page uses typeof(crypto.algorithms) to search for the presence of the 
Personal Security Manager
(Reporter)

Updated

18 years ago
Keywords: crash

Comment 1

18 years ago
>Using typeof(crypto.algorithms) will crash browser

Could that be because they're unclassified? *ducks*

Comment 2

18 years ago
I'm not getting a crash.  crypto.algorithms evaluates to null for me.  I only 
see crypto.versions.

Win98 2000 093008, both without and with psm.

I do get a noticable delay the first time I access crypto.versions, though.

Comment 3

18 years ago
Even if they were, Mozilla shouldn't crash, should it?
Using 2000-09-29-21/Linux I get this error (default nightly):

JavaScript error: 
 line 0: uncaught exception: [Exception... "Failure"  code: "-2147467259" 
nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location:
"http://gemal.dk/browserspy/psm.html Line: 149"]

and this output:
Version               (this one is empty)
Algorithms supported  Personal Security Manager not loaded!
Algorithms Info       Personal Security Manager not loaded!

Well and with newly installed PSM I get:
Version 1.3,1.2

It works for me without crash.
(Reporter)

Comment 4

18 years ago
with 2000100120 I'm also getting:
JavaScript error:
line 0: uncaught exception: [Exception... "Failure"  code: "-2147467259" 
nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: 
"http://gemal.dk/browserspy/psm.html Line: 149"]

So invalid or works4me
Keywords: crash

Comment 5

18 years ago
Worksforme on Linux, Mac and Win98 PR3 candidates.
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → WORKSFORME

Updated

18 years ago
Status: RESOLVED → VERIFIED

Comment 6

18 years ago
Verified.

Comment 7

17 years ago
Mass changing Security:Crypto to PSM
Component: Security: Crypto → Client Library
Product: Browser → PSM
Version: other → 2.1

Comment 8

17 years ago
Mass changing Security:Crypto to PSM

Updated

13 years ago
Component: Security: UI → Security: UI
Product: PSM → Core

Updated

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