Remove outdated iframe sandbox attribute (#12633)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/28217/head
parent
6c99b91210
commit
ead7303f78
|
@ -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>
|
||||
)}
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue