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

Commit ead7303

Browse files
authored
Remove outdated iframe sandbox attribute (#12633)
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 6c99b91 commit ead7303

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/views/messages/MFileBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export default class MFileBody extends React.Component<IProps, IState> {
288288
src={url}
289289
onLoad={() => this.downloadFile(this.fileName, this.linkText)}
290290
ref={this.iframe}
291-
sandbox="allow-scripts allow-downloads allow-downloads-without-user-activation"
291+
sandbox="allow-scripts allow-downloads"
292292
/>
293293
</div>
294294
)}

src/utils/FileDownloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function getManagedIframe(): { iframe: HTMLIFrameElement; onLoadPromise: Promise
4747

4848
// @ts-ignore
4949
// noinspection JSConstantReassignment
50-
managedIframe.sandbox = "allow-scripts allow-downloads allow-downloads-without-user-activation";
50+
managedIframe.sandbox = "allow-scripts allow-downloads";
5151

5252
onLoadPromise = new Promise((resolve) => {
5353
managedIframe.onload = () => {

0 commit comments

Comments
 (0)