Extension unable to save/download files

Duplicate Issue #8477778 • See Issue #8178877

Details

Author
Conrad F.
Created
Aug 12, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Duplicates
See progress on Bug #8178877
Found in build #
38.14393
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

2 issues closely related:
Trying to download a “Blob” from an extension popup page results in nothing happening:
var data = JSON.stringify(response.data, undefined, 4),
blob = new Blob([data], {type: 'text/json’});

(This code successfully works in both Chrome and Firefox)

As a potential work around I’m currently opening up a different page in a new tab:
ms-browser-extension://JIRATemplateInjector_w6w9dyhp8gd3c/html/download.html

Running the same code on the download.html page results in the window:
What do you want to do with <text file here>?
From: about:blob
<Save> <Save as> <Cancel> <X>
being displayed, however none of the button other than the X result in anything. The window will continue to be displayed until the X is clicked.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Title from “Extension unable to save/dowload files” to “Extension unable to save/download files”

      Changed Assigned To to “Sermet I.”

      Changed Assigned To from “Sermet I.” to “Suyang Z.”

      Changed Status to “Confirmed”

    • Have same issue, possibly because basic download API isn’t supported in Edge

    • Microsoft Edge Team

      Changed Assigned To from “Suyang Z.” to “Scott L.”

    • Thanks for filing this bug! In the repro steps, it looks like some of your sample code got cut off. I see you’re creating the blob, but I don’t see how the blob is being downloaded. Are you using msSaveBlob() or something similar? If you could provide more information or a reduced case extension, that would help us further reduce the issue. Thanks again!

    • Hi Scott, you can reproduce this with the Tampermonkey extension [1]. Just install the extension, then open the options page and select the “Utilities” tab. Finally you have to click the “Export” button at the “Zip” section. Tampermonkey uses FileSaver.js [2] to save the blob. Thanks, Jan

      [1] https://www.microsoft.com/en-us/store/p/tampermonkey/9nblggh5162s
      [2] https://github.com/eligrey/FileSaver.js

    • Microsoft Edge Team

      Changed Status from “Confirmed” to “Duplicate”

    • Hi Jan, I didn’t see it was you who filed this bug :). This is a duplicate of a known issue with msSaveOrOpenBlob() not working correctly in extensions. I’ve bumped up the priority of the internal bug we have tracking this and will let you know when I have more information!

    • Also experiencing this issue with the upcoming uBlock-Edge extension https://github.com/nikrolls/uBlock-Edge/issues/24.

      I also noticed that the issue doesn’t only affect extensions. Trying to download a file from a website, that uses whatever method this is, where the source becomes about:blob, shows the same behavior.

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

    Sign in