blob saving via injected anchor tag throws an error in extension background scripts

Confirmed Issue #10027253 • Assigned to Ryan C.

Details

Created
Dec 1, 2016
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

var data = {
 foo: "bar",
 bar: “baz”
};

var blob = new Blob([data]);

var filename = “test.txt”

let a = document.createElement(‘a’);
var url = window.URL.createObjectURL(blob);
a.href = url;
a.download = filename;
document.body.appendChild(a);
a.click();

Running this code in an extension’s background script will cause an error to be thrown (see below)

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Status to “Confirmed”

      Changed Assigned To to “Sermet I.”

      Changed Steps to Reproduce

      Changed Assigned To from “Sermet I.” to “Ryan C.”

      Changed Title from “blob saving via injected anchor tag does not work in extension background scripts” to “blob saving via injected anchor tag throws an error in extension background scripts”

      Changed Steps to Reproduce

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

    Sign in