This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18525 - window.crypto can't be used in webworkers
Summary: window.crypto can't be used in webworkers
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: All All
: P2 major
Target Milestone: ---
Assignee: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 15:50 UTC by Social Bro
Modified: 2012-10-22 06:28 UTC (History)
1 user (show)

See Also:


Attachments

Description Social Bro 2012-08-10 15:50:48 UTC
Why is "crypto" part of "window"? That way webworkers can't access

window.crypto.getRandomValues();

for example, which would be really useful.

Thanks for reading.
Comment 1 David Dahl 2012-08-10 16:54:01 UTC
There has been some talk about also specifying a synchronous API for web workers. It is too early to tell if this will happen or not. I do think it is a good idea as other DOM APIs are doing this.
Comment 2 Social Bro 2012-08-10 17:11:19 UTC
okay, thank you :)
Comment 3 Ryan Sleevi 2012-10-22 06:28:03 UTC
Resolved to 2012-10-22 draft. The WorkerCrypto interface has been specified that allows parts of the Crypto interface to be exposed via the WorkerGlobalScope.

See http://www.w3.org/2012/webcrypto/WebCryptoAPI/#WorkerCrypto-interface