chore: update to Electron 34 (#237557)

* chore: update electron@33.3.0

* chore: update for webFrameMain possibly being null

Refs ae9f2df082

* chore: update debian deps

* chore: update rpm deps

* chore: bump electron@34.0.0-beta.12

* temp: use std::format for spdlog

* chore: update debian deps

* chore: update rpm deps

* chore: bump electron@34.0.0

* chore: bump electron@34.0.1

* chore: bump electron@34.1.0

* chore: update required portal version

* chore: use enableDeprecatedPaste

* chore: update builds

* chore: bump distro
This commit is contained in:
Robo
2025-02-12 18:36:35 +09:00
committed by GitHub
parent 14aaa19def
commit f94b27000c
18 changed files with 144 additions and 120 deletions

View File

@@ -167,11 +167,17 @@ export class CodeApplication extends Disposable {
const allowedPermissionsInWebview = new Set([
'clipboard-read',
'clipboard-sanitized-write',
// TODO(deepak1556): Should be removed once migration is complete
// https://github.com/microsoft/vscode/issues/239228
'deprecated-sync-clipboard-read',
]);
const allowedPermissionsInCore = new Set([
'media',
'local-fonts',
// TODO(deepak1556): Should be removed once migration is complete
// https://github.com/microsoft/vscode/issues/239228
'deprecated-sync-clipboard-read',
]);
session.defaultSession.setPermissionRequestHandler((_webContents, permission, callback, details) => {
@@ -202,7 +208,7 @@ export class CodeApplication extends Disposable {
const supportedSvgSchemes = new Set([Schemas.file, Schemas.vscodeFileResource, Schemas.vscodeRemoteResource, Schemas.vscodeManagedRemoteResource, 'devtools']);
// But allow them if they are made from inside an webview
const isSafeFrame = (requestFrame: WebFrameMain | undefined): boolean => {
const isSafeFrame = (requestFrame: WebFrameMain | null | undefined): boolean => {
for (let frame: WebFrameMain | null | undefined = requestFrame; frame; frame = frame.parent) {
if (frame.url.startsWith(`${Schemas.vscodeWebview}://`)) {
return true;