embed: add allow-forms to sandbox, otherwise location bar is disabled

update to latest wabac.js
This commit is contained in:
Ilya Kreymer
2020-09-02 21:17:49 -07:00
parent 889f51171a
commit 2212678ed7
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ class Embed extends LitElement
render() { render() {
return html` return html`
${this.paramString && this.hashString && this.swInited ? html` ${this.paramString && this.hashString && this.swInited ? html`
<iframe sandbox="allow-downloads allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-scripts allow-same-origin" @load="${this.onLoad}" src="${this.replaybase}?${this.paramString}#${this.hashString}" allow="autoplay *; fullscreen"></iframe> <iframe sandbox="allow-downloads allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-scripts allow-same-origin allow-forms" @load="${this.onLoad}" src="${this.replaybase}?${this.paramString}#${this.hashString}" allow="autoplay *; fullscreen"></iframe>
` : html``} ` : html``}
${this.noSW ? html` ${this.noSW ? html`
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1936,7 +1936,7 @@ const zt=new WeakMap,$t=w(e=>t=>{if(!(t instanceof T))throw new Error("unsafeHTM
} }
`)}render(){return O` `)}render(){return O`
${this.paramString&&this.hashString&&this.swInited?O` ${this.paramString&&this.hashString&&this.swInited?O`
<iframe sandbox="allow-downloads allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-scripts allow-same-origin" @load="${this.onLoad}" src="${this.replaybase}?${this.paramString}#${this.hashString}" allow="autoplay *; fullscreen"></iframe> <iframe sandbox="allow-downloads allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-scripts allow-same-origin allow-forms" @load="${this.onLoad}" src="${this.replaybase}?${this.paramString}#${this.hashString}" allow="autoplay *; fullscreen"></iframe>
`:O``} `:O``}
${this.noSW?O` ${this.noSW?O`
+1 -1
View File
@@ -293,7 +293,7 @@
"@webrecorder/wabac@github:webrecorder/wabac.js": "@webrecorder/wabac@github:webrecorder/wabac.js":
version "2.0.5" version "2.0.5"
resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/036de761b37fea0e19c0fc2a860eadad31b839a5" resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/84fb1753c88ecfeae7073eb2776f686e2ae954b1"
dependencies: dependencies:
brotli "github:foliojs/brotli.js" brotli "github:foliojs/brotli.js"
fast-xml-parser "^3.15.1" fast-xml-parser "^3.15.1"