blob saving via injected anchor tag results in a "Save"/"Save as" dialog whose buttons do not work on ms-browser-extension:// pages

Duplicate Issue #10027665 • See Issue #9551771

Details

Created
Dec 1, 2016
Privacy
This issue is public.
Duplicates
See progress on Bug #9551771
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 blob = new Blob([data], {type: "application/json}); does the same thing

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();

Note that this occurs whenever a file type that does not have a default application associated with it is specified in the blob constructor. For example, specifying {type: "text/plain"} will  work because Notepad will open the blob (this is due to 10027665 and is a bug)

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Scott S.”

      Changed Status to “Confirmed”

      Changed Title from “blob saving via injected anchor tag with no type or {type: "application/json"} does not work in ms-browser-extension:// tabs” to “blob saving via injected anchor tag with no type or {type: "application/json"} results in a "Save"/"Save as" dialog whose buttons do not work”

      Changed Title from “blob saving via injected anchor tag with no type or {type: "application/json"} results in a "Save"/"Save as" dialog whose buttons do not work” to “blob saving via injected anchor tag with no type or {type: "application/json"} results in a "Save"/"Save as" dialog whose buttons do not work on ms-browser-extension:// pages”

      Changed Steps to Reproduce

      Changed Title from “blob saving via injected anchor tag with no type or {type: "application/json"} results in a "Save"/"Save as" dialog whose buttons do not work on ms-browser-extension:// pages” to “blob saving via injected anchor tag results in a "Save"/"Save as" dialog whose buttons do not work on ms-browser-extension:// pages”

      Changed Steps to Reproduce

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

      Changed Status from “Confirmed” to “Duplicate”

    • }This bug has marked as duplicate. Please follow the parent issue to get new updates.

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

    Sign in