crypto.getRandomValues not working in content script context

Won’t fix Issue #11795162


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

Found in build #
Reported by 2 people

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.”

    Changed Title from “crypto.getRandomValues not working in content script context” to “crypto.getRandomValues not working in content script context”

  • Any updates on this? Still reproduces in Edge 17134.

  • Microsoft Edge Team

    Changed Status from “Confirmed” to “Won’t fix”

    Changed Assigned To to “Corey W.”

  • Hello and thank you again for posting your feedback on the Edge browser. Unfortunately, we will not be fixing this issue in the current version of Edge but the Chromium version of Edge browser will be replacing Edge in the very near future, so we would like you to test this issue in a version of Edge Chromium. 
    We were unsuccessful in reproducing this issue in Edge Chromium but let us know if you experience different behavior.

    Best Regards.
    The MS Edge Team

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

Sign in