Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix having to decrypt & download in two steps #4162

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Mar 3, 2020

Fixes element-hq/element-web#9035

This may not work in all browser configurations until allow-downloads-without-user-activation is everywhere which is why the button remains "Decrypt". Nad OK'd this. element-hq/element-web#7431 tracks further UX improvements.

Tested in:

  • Chrome
  • Firefox
  • Safari

@t3chguy t3chguy requested a review from a team March 3, 2020 11:08
@t3chguy
Copy link
Member Author

t3chguy commented Mar 3, 2020

@jryans any chance you could test in Safari 👼

@jryans
Copy link
Collaborator

jryans commented Mar 3, 2020

@jryans any chance you could test in Safari 👼

Yes! It triggers a per-site permission prompt the first time. If you agree, download proceeds from first click as desired.

@t3chguy t3chguy merged commit ca274dd into develop Mar 3, 2020
@Neboer
Copy link

Neboer commented Oct 19, 2022

@jryans dear dev, I must kindly point out that not all the browsers are support the "allow-downloads-without-user-activation" flag, for example in Chrome(my Chrome version is 106.0.5249.119 Windows x64). There will be an error in the Chrome console and the download button doesn't work at all.

allow-downloads-without-user-activation-violations

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Download link in encrypted chats must be clicked twice, is confusing
3 participants