Is it possible to programatically set the "from:" field in a Firefox file open dialog using javascript

135 Views Asked by At

I am generating a file open dialog which allows the user to download a blob I have generated in code. This works fine but in Firefox the "from:" field on the open dialog looks like:

from: blob:

Is it possible to programmatically set this with javascript so that I can specify the domain the data actually originates from?

For example if the blob was generated from data on www.stackoverflow.com I would like the open dialog to look like:

from: www.stackoverflow.com

1

There are 1 best solutions below

1
On BEST ANSWER

No, you cannot influence the "From:" description in the Save dialog. Otherwise folks would abuse this.

However, it is indeed unfortunate that blob URIs display this poorly. Consider filing a bug (or even creating a patch) to rectify this.