Remove outdated iframe sandbox attribute (#12633)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/28217/head
Michael Telatynski 2024-06-20 10:34:33 +01:00 committed by GitHub
parent 6c99b91210
commit ead7303f78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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>
)}

View File

@ -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 = () => {