Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd download tag for self contained html #278
Conversation
|
If we think the logic makes sense, I can work to try to fix the unit tests, otherwise, I'll leave this as is for now for further thoughts. |
|
This was to deal with something that Chrome (and IE/Edge) did (block data content). I wonder if we only should change the behavior for those browsers (which would require us to deal with this in javascript) or if we sort of agree with the security aspect and change it for all the things? I guess what I'm a little bit worried about is introducing a breaking change. |
|
I think Firefox also blocks it...
https://blog.mozilla.org/security/2017/11/27/blocking-top-level-navigations-data-urls-firefox-59/
…On Thu, Mar 5, 2020, 1:18 AM Jim Brännlund ***@***.***> wrote:
This was to deal with something that Chrome (and IE/Edge) did (block data
content).
I wonder if we only should change the behavior for those browsers (which
would require us to deal with this in javascript) or if we sort of agree
with the security aspect and change it for all the things?
I guess what I'm a little bit worried about is introducing a breaking
change.
|
|
We can probably assume this going to be standard in many browsers if Google does it. |
|
Looks good! It'd be great if you could add some tests as well. :) |
|
Added a couple tests and (hopefully) fixed the linting. @BeyondEvil give it one more look if you can. Thanks. |
|
@ssbarnea any chance this could get merged (after rebase)? |
|
After rebase yes but it would also be very useful to provide a link in PR description to an sample file produced with this feature, so we can easily test how it works. |
csm10495 commentedMar 5, 2020
This should resolve #273. If we're working with a self contained html, simply download text (and json) files instead of trying to open them in the current browser window.