Re:Blocking Top-Level Navigations to Data URLs for Firefox 58
by dfabulich on Thursday November 30, 2017 @05:40PM
(#15820300)
You’re fine.
> Whereas the following cases will be allowed:
> • Downloading a data: URL, e.g. ‘save-link-as’ of “data:…”
Re:Blocking Top-Level Navigations to Data URLs for Firefox 58
by jacobn on Thursday November 30, 2017 @06:00PM
(#15820443)
That sounds like the user will have to right-click and choose "Save As"?
Re:Blocking Top-Level Navigations to Data URLs for Firefox 58
by chrismorgan on Thursday November 30, 2017 @06:08PM
(#15820501)
I presume the `download` attribute will still work, as it’s not navigation:
<a href="data:image/svg+xml,…" download="filename.svg">
Re:Blocking Top-Level Navigations to Data URLs for Firefox 58
by tetromino_ on Thursday November 30, 2017 @06:35PM
(#15820659)
And that "I presume" instead of "I am quite certain" is precisely why I said I was worried about exactly how this block works. I will need to try with the beta, I suppose.
Re:Blocking Top-Level Navigations to Data URLs for Firefox 58
by potch on Thursday November 30, 2017 @07:31PM
(#15820978)
I can confirm <a download> links with data: URIs will work after this change.
I built a test to demonstrate: https://data-uri-test.glitch.me/
Re:Blocking Top-Level Navigations to Data URLs for Firefox 58
by tetromino_ on Friday December 01, 2017 @03:26PM
(#15827063)
Thanks for checking and the reassurance!
We generate SVG graphs in the browser, and have a button with a data:image/svg+xml URL to allow users to download these graphs, for example to include in a publication.