Skip to content

BrowserWindow with setContentProtection(true) captured on some Windows OSs #47834

@oalfroukh

Description

@oalfroukh

Preflight Checklist

Electron Version

36.3.2

What operating system(s) are you using?

Windows

Operating System Version

Windows 10 Pro 19045

What arch are you using?

x64

Last Known Working Electron version

36.3.1

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

Browser Window with setContentProtection(true) on Windows 10 version 2004 and up the window should be removed from capture entirely, older Windows versions behave as if WDA_MONITOR is applied capturing a black window.

Actual Behavior

  • Browser Window with setContentProtection(true) is captured on some of Windows OSs like build Win10 19045, Win11 22000 while it's ok on Win11 22631, Win11 26100, Win 11 22621.
  • it seems that it's a side effect for fix: titlebar showing in content protected window as the issue is started present from v36.3.2 and above
Image

Testcase Gist URL

https://gist.github.com/b84b2237e562292814255903feece9db

Additional Information

No response

Metadata

Metadata

Assignees

Type

Projects

Status

👍 Does Not Block Stable

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions