<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">15.3.1, 16.0.0-beta.8, 9.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">MacOS 11.6.1</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<ul dir="auto">
<li></li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">since document mention <code class="notranslate">setContentProtection(true)</code> supports MacOS, I expect it to prevent the window from being captured and took screenshot from.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">u can easy capture screen by the built-in app in macOS<br>
just search <code class="notranslate">screenshot</code> in ur spotlight searcher and take video.<br>
the property has no effect</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I already read about something similar on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="483827532" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/19880" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/19880/hovercard" href="https://github.com/electron/electron/issues/19880">#19880</a> but that issue was about specific app (chrome browser) but mine is macOS built-in screenshot app (and probably all other desktop recording applications).<br>
beside that that issue was for old version of electron and being closed and no one responding to it.<br>
I tried after two years of that issue and it is not fixed after 2 years.<br>
all the solutions and flag settings in that issue were also useless.</p>
<p dir="auto">please, this is important, if u know any alternative solution to handle such thing in electron tell me.</p>
<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: v2.0.3</li>
<li>Operating System (Platform and Version):  macOS High Sierra</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong></p>
<p dir="auto">Setting window.setContentProtection(true), should resist the external apps to capture the screen of the electron app</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Quicktime player can capture and record the screen of the electron app, with setContentProtection(true)</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">Create a new electron project, use setContentProtection(true) on window, capture in mac with quick time player</p>