From 4c4a63fb5e07fc7f0a79c3af9245637c605f3830 Mon Sep 17 00:00:00 2001 From: Stefan Muhle <88313428+stefanmuhle@users.noreply.github.com> Date: Wed, 7 Sep 2022 06:07:52 +0200 Subject: [PATCH] Add the clipboard read permission for widgets (#9250) Signed-off-by: Stefan Muhle Signed-off-by: Stefan Muhle --- src/components/views/elements/AppTile.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/elements/AppTile.tsx b/src/components/views/elements/AppTile.tsx index 9bdb94f5800..a25e42ad26b 100644 --- a/src/components/views/elements/AppTile.tsx +++ b/src/components/views/elements/AppTile.tsx @@ -550,7 +550,8 @@ export default class AppTile extends React.Component { // Additional iframe feature permissions // (see - https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes and https://wicg.github.io/feature-policy/) - const iframeFeatures = "microphone; camera; encrypted-media; autoplay; display-capture; clipboard-write;"; + const iframeFeatures = "microphone; camera; encrypted-media; autoplay; display-capture; clipboard-write; " + + "clipboard-read;"; const appTileBodyClass = 'mx_AppTileBody' + (this.props.miniMode ? '_mini ' : ' '); const appTileBodyStyles = {};