[Bug]: setContentProtection
affects an application window behavior
#31735
Labels
13-x-y
14-x-y
15-x-y
16-x-y
bug 🪲
component/BrowserWindow
platform/windows
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
15.2.0
What operating system are you using?
Windows
Operating System Version
Windows 10 version 20H2
What arch are you using?
x64
Last Known Working Electron version
15.1.2
Expected Behavior
Apply
setContentProtection
function without any effects on the application window behavior onbrowser-window-created
event.Actual Behavior
When
setContentProtection
function is called onbrowser-window-created
event, the application window form will changed when the focus is backed. The value of the argument ofsetContentProtection
has no effect on the result.Testcase Gist URL
https://gist.github.com/KazuyaHayashi/33372ae657dde602e68fdb50aabafa31
Additional Information
When I call
setContentProtection
just after creatingBrowserWindow
, this issue does not happen. But I want to set contents protection on each windows which are created bynew-window
event. Therefor, I have calledsetContentProtection
function onbrowser-window-created
event.The text was updated successfully, but these errors were encountered: