From 8dcc75df01f83b3a1744473f69f259d7e042380f Mon Sep 17 00:00:00 2001 From: moodiness <107598962+moodiness@users.noreply.github.com> Date: Sat, 6 Jun 2026 14:36:38 +0200 Subject: [PATCH 1/2] feat(pass-desktop): enable content protection Enable BrowserWindow content protection for Pass desktop to help prevent sensitive content from being captured during screen sharing or screenshots. --- applications/pass-desktop/src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/pass-desktop/src/main.ts b/applications/pass-desktop/src/main.ts index 25467580e4e..68e00cd13a7 100644 --- a/applications/pass-desktop/src/main.ts +++ b/applications/pass-desktop/src/main.ts @@ -138,6 +138,8 @@ const createWindow = async (session: Session): Promise => { acceptFirstMouse: true, }); + ctx.window.setContentProtection(true); + if (zoomLevel) { ctx.window.webContents.setZoomLevel(zoomLevel); } From 552b242ee49795377b1e125eb612ee302af2f408 Mon Sep 17 00:00:00 2001 From: moodiness <107598962+moodiness@users.noreply.github.com> Date: Sat, 6 Jun 2026 14:44:50 +0200 Subject: [PATCH 2/2] refactor(pass-desktop): skip content protection in debug mode Skip BrowserWindow content protection when PASS_DEBUG is enabled. This preserves the privacy protection for production builds while keeping debug builds easier to inspect during development. --- applications/pass-desktop/src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/pass-desktop/src/main.ts b/applications/pass-desktop/src/main.ts index 68e00cd13a7..c47b1430030 100644 --- a/applications/pass-desktop/src/main.ts +++ b/applications/pass-desktop/src/main.ts @@ -138,7 +138,9 @@ const createWindow = async (session: Session): Promise => { acceptFirstMouse: true, }); - ctx.window.setContentProtection(true); + if (!process.env.PASS_DEBUG && isProdEnv()) { + ctx.window.setContentProtection(true); + } if (zoomLevel) { ctx.window.webContents.setZoomLevel(zoomLevel);