IE11's Web Crypto is located inside of window.msCrypto
, whereas for Firefox or Chrome, it's accessible in window.crypto
.
Web Workers do not have access to the window
context but, thankfully, Chrome and Firefox also expose the crypto
variable in the Web Worker context (so, at the global level, you can use this.crypto
to access the Web Crypto suite in a Web Worker). It would seem, however, that IE11 does not expose this.msCrypto
in their Web Worker context.
Is that correct? Is there any way to use Web Crypto in an IE11 Web Worker?