Closed as duplicate of#45990
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
34.4.0
What operating system(s) are you using?
Windows
Operating System Version
Windows 11 Pro 23H2 , 24H2
What arch are you using?
x64
Last Known Working Electron version
34.3.0
Expected Behavior
- Electron window with
setContentProtection
property should be displayed only on a monitor. Everywhere else, the window does not appear at all during screen capture. - Here is a screenshot for the attached gist when we tried to capture the screen with electron
v34.3.0
(the protected window not appear at all)
Actual Behavior
- Starting from electron
v34.3.0
Electron window withsetContentProtection
property displayed as a black window during screen capture. - It seems a side effect for fix: setContentProtection(true) after hide on Windows
- Here is a screenshot for the attached gist when we tried to capture the screen with electron
v34.4.0
(the protected window appeared as a black window and it prevented the users from seeing the other apps on that shared screen)
Testcase Gist URL
https://gist.github.com/7c1a70e855c50379e7cf42a06277f71e
Additional Information
No response