crypto.getRandomValues not working in content script context

Confirmed Issue #11795162 • Assigned to Scott S.


Nicholas S.
Apr 26, 2017
This issue is public.
Found in
  • Microsoft Edge
Standard affected
Web Cryptography API

Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

The erroneous behaviour is returning/keeping a 0-value array.

You may confirm by running this sample code:

var rawr = new Uint8Array(16);

Switching context/target in the debugger will output similar result as the attached image

webCrypto returns all zeros in content script. Works in Chrome and also works in console.

Repro Steps:

  1. Download ContentTest extension from attachment
  2. Load extension in Edge
  3. Navigate to any page
  4. Notice alert returning all 0 values


Comments and activity

  • Changed Steps to Reproduce

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

    Changed Assigned To from “Steven K.” to “James M.”

    Changed Assigned To to “Venkat K.”

    Changed Assigned To from “Venkat K.” to “Scott L.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Scott L.” to “Kiril S.”

    Changed Steps to Reproduce

    Changed Assigned To from “Kiril S.” to “Scott S.”

You need to sign in to your Microsoft account to add a comment.

Sign in