Closed Bug 139258 Opened 23 years ago Closed 22 years ago

Calling the window.crypto.SignText() method in JavaScript

Categories

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

1.0 Branch
enhancement

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 29152
Future

People

(Reporter: nraya, Assigned: KaiE)

References

Details

Calling the window.crypto.SignText() method in JavaScript in Netscape 4.7x for client-side signing of documents works. When used in 6.2 the same function , returns the following error message - Error: uncaught exception: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMCrypto.signText]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: :: ff :: line 8" data: no] How do we use this function in version 6.2? If this function is no longer available, has it been replaced with another one that achieves the same result ? The following is a sample script, ****************************************************************************** <html> <head> <script language=Javascript1.2> function signTextForm() { window.crypto.signText(document.test.signText.value,"ask"); return true; } </script> </head> <body> <form name="test"> <input type="text" name="signText" value="Sign this text"> <input type="button" name="signButton" value="Sign this text" onClick="signTextForm();"> </form> </body> </html> Error: uncaught exception: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMCrypto.signText]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: file:///C|/WINNT/Profiles/nraya/Desktop/sign.html :: signTextForm :: line 8" data: no] Error: document.ticktext has no properties Source File: https://lizard/ Line: 39
Keywords: nsenterprise
Browser, not engine. Reassigning to Security:General -
Assignee: dbradley → mstoltz
Component: XPConnect → Security: General
QA Contact: pschwartau → bsharma
->PSM. Do we still have crypto APIs in JS?
Assignee: mstoltz → ssaux
Component: Security: General → S/MIME
Product: Browser → PSM
QA Contact: bsharma → carosendahl
Version: other → 2.3
I am actually seeing these errors on Linux, not Windows. I have several scripts that I am debugging at the moment to understand the cause. However the fact that several scripts work without problem on the Windows platform yet return the error mentioned within this defect leaves the door open for further investigation.
Severity: major → enhancement
Component: S/MIME → Client Library
Priority: -- → P2
Target Milestone: --- → Future
This function is not available in PSM. This is a future enhancement.
shouldn't 4xp keyword be added here?
Keywords: 4xp
Kai, we talked about this.
Assignee: ssaux → kaie
Blocks: advocacybugs
How is this crypto thing now? And why it is NOT_IMPLEMENTED? I would use this, and must realize, that won't work under mozilla based browsers :( Thx.
Thx! So in the future ... :(
is there chance for a fix by 1.3?
is this currently blocking my clients signed s/mime webmail for mozilla. damn..
Flags: blocking1.4a?
Flags: blocking1.4a? → blocking1.4a-
is this a duplicate of bug 29152? This bug even has a patch... I'm sorry I couldn't find it earlier. There is a solution to this problem from Lfern (http://secclab.mozdev.org) or (http://www.sourceforge.net/projects/formx/). It would be good if these could be integrated into Mozilla, so that no downloading of XPI package would be needed.
I agree it's a duplicate. *** This bug has been marked as a duplicate of 29152 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
> is this currently blocking my clients signed s/mime webmail for mozilla. Henrik, I don't understand. Could you elaborate why you need this? If you add comments, please add to bug 29152. Thanks!
Product: PSM → Core
Version: psm2.3 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.