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

Remove outdated iframe sandbox attribute #12633

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/views/messages/MFileBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default class MFileBody extends React.Component<IProps, IState> {
src={url}
onLoad={() => this.downloadFile(this.fileName, this.linkText)}
ref={this.iframe}
sandbox="allow-scripts allow-downloads allow-downloads-without-user-activation"
sandbox="allow-scripts allow-downloads"
/>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/FileDownloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function getManagedIframe(): { iframe: HTMLIFrameElement; onLoadPromise: Promise

// @ts-ignore
// noinspection JSConstantReassignment
managedIframe.sandbox = "allow-scripts allow-downloads allow-downloads-without-user-activation";
managedIframe.sandbox = "allow-scripts allow-downloads";

onLoadPromise = new Promise((resolve) => {
managedIframe.onload = () => {
Expand Down
Loading