FileReader.readAsArrayBuffer is not working in content scripts

Confirmed Issue #9065915 • Assigned to Sermet I.

Details

Created
Sep 26, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
38.14393
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Hi, I am injecting file input to page and then trying to get uploaded image contents:

reader.onload = function(e2) {
        console.log(e2);
        console.log('e2.target.result', e2.target.result); // Error!
        console.log('this.result', this.result);      // Error!
};
reader.readAsArrayBuffer(file);

I am getting following error in console:
SCRIPT257: Could not complete the operation due to error 80020101.

Also I think it may be important that I see target.result as <Permission denied> in console, see screenshot

Have attached test extension to reproduce:

  1. Load it to Edge
  2. Open any site, www.example.com is ok. Extension will add file input to the bottom of the page
  3. Try to upload any file and see console output

Let me know if any additional permissions are required for extension in Edge.

Thank you,
Alex

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Brad E.”

    Changed Assigned To to “Sebastian P.”

    Changed Assigned To to “Sermet I.”

    Changed Assigned To from “Sermet I.” to “Scott L.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Scott L.” to “Sermet I.”

  • Hi, any timeframe of when issue will be resolved? We are working on official port of https://chrome.google.com/webstore/detail/perfectpixel-by-welldonec/dkaagdgjmgdmbnecmcefdhjekcoceebi to Edge, and it blocks us

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

Sign in