New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download button not working in demo. #108
Comments
Aha! It's a security issue! I think there are ways around this. Perhaps we need to replace the button with a "generate download" button that gets replaced with a button with the dataurl as the href. That way it's not a script opening it directly which is the security issue? Great job posting the gif. It's a super way to document the bug! |
@jywarren I just opened spectralworkbench.org to check if the Download button was working fine there. But, the capture functionality is not working there for me. |
Ah - so this may be an issue affecting the live site as well -- and we
should be able to re-apply our fix from here to that site as well.
…On Fri, Jul 19, 2019 at 4:07 PM Siddhant N Trivedi ***@***.***> wrote:
@jywarren <https://github.com/jywarren> I just opened
spectralworkbench.org to check if the Download button was working fine
there. But, the capture functionality is not working there for me.
[image: wbench]
<https://user-images.githubusercontent.com/31186013/61562368-ce04a680-aa8e-11e9-83e4-727ed2497fbb.gif>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#108?email_source=notifications&email_token=AAAF6J2RIQUCYHFO7IHXXHDQAINE7A5CNFSM4IFKWBY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2MUHWA#issuecomment-513360856>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J64PEG5B2TMBYRBQ4TQAINE7ANCNFSM4IFKWBYQ>
.
|
@jywarren I think the error is related to the cache file.
|
Its pointing to these lines of code in <!DOCTYPE html>
<html manifest="/not-existing.appcache"> |
I think this is the relevant error -- See how it says it's not allowed to open a data url? It's because we did so from javascript, not from a user interaction. I believe this is a new security restriction: https://bugs.chromium.org/p/chromium/issues/detail?id=684011&desc=2 So, try making the script add a new button next to the existing button that says |
Here's another approach, too! https://stackoverflow.com/questions/57039649/open-or-redirect-to-base64-dataurl-via-jquery-or-js |
No description provided.
The text was updated successfully, but these errors were encountered: