Skip to content

Conversation

@danxuliu
Copy link
Member

Audio recording previews use a blob, so the Content Security Policy must allow media from blobs to be able to play it.

This was not a problem in the main Talk UI, as in that case the Content Security Policy already allowed media from blobs.

How to test

  • Open the Files app
  • Share a file
  • Open the Chat tab
  • Start a conversation
  • Record an audio message

Result with this pull request

The preview dialog is shown and the audio recording can be played.

Result without this pull request

The preview dialog is shown but the audio recording can not be played. Browser console shows an error similar to The page’s settings blocked the loading of a resource at blob:https://192.168.57.21:8443/5a589af9-ab9f-4e6e-8785-fa3da9684ee7 (“media-src”).

Audio recording previews use a blob, so the Content Security Policy must
allow media from blobs to be able to play it.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu added 3. to review bug feature: frontend 🖌️ "Web UI" client feature: talk-sidebar ⬅️ Sidebar integration of Talk into other apps like sharing and documents labels Aug 12, 2021
@danxuliu danxuliu added this to the 💖 Next Major (23) milestone Aug 12, 2021
@danxuliu
Copy link
Member Author

/backport to stable22.1

@danxuliu
Copy link
Member Author

/backport to stable22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug feature: frontend 🖌️ "Web UI" client feature: talk-sidebar ⬅️ Sidebar integration of Talk into other apps like sharing and documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants