3 ms·
I guess someone needs to write an extension for that.
by fetbaffe 10y ago
I guess someone needs to write an extension for that.
- bartread 10y agoBOOM!!
- BugsJustFindMe 10y agoSo I just spent the past few hours learning how and then trying... msSaveOrOpenBlob currently silently fails in Edge extension content scripts. My first workaround of creating an invisible objectURL download link from the document body text (trying to not re-download the file) and then programatically clicking it only partially works, because Edge currently ignores the download attribute value on links so you can't set the default file name and you get a disgusting GUID as the default filename instead. This is sadly the best option so far. My second workaround of re-transferring the file using the document URL directly, again with injecting a hidden automatically clicked <a> tag, also only partially works. This is in fact worse than the first workaround, because it doesn't even prompt to save or choose a file name. It just pops the file open in Notepad with the right file name but the wrong file extension, changing, for instance, "constants.js" to "constants.txt". And now I'm tired of this exercise. Back to just not caring about Edge.