Enable Chromium sandboxing for remote webviews.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-01-23 19:16:03 -08:00
committed by Anders Kaseorg
parent 0ae998a51e
commit 5a571d66d0
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ export default class WebView {
src="${props.url}"
${props.preload === undefined
? html``
: html`preload="${props.preload}" webpreferences="sandbox=no"`}
: html`preload="${props.preload}"`}
partition="persist:webviewsession"
allowpopups
>

View File

@@ -1,4 +1,4 @@
import {EventEmitter} from "node:events";
import {EventEmitter} from "events"; // eslint-disable-line unicorn/prefer-node-protocol
import type {ClipboardDecrypter} from "./clipboard-decrypter.js";
import {ClipboardDecrypterImpl} from "./clipboard-decrypter.js";