<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/master/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/master/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">12.0.1</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10 Enterprise build no. 19041</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">When I print a pdf using print({ silent: true, printBackground: true }) } I expect for it to work and print without showing dialog box of printing options, but use the default print configuration.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">It does not print but remains stuck if default print option is print. If I set it to Microsoft Print to Pdf, it prints an empty doc.</p>
<p dir="auto">If I use executeJavaScript('window.print({ silent: true, printBackground: true })'), it prints but it is not silent. This problem exists only with pdf.<br>
I updated electron version to 13.0.0 but there the pdf view does not work also, it stucks showing blank pages, so I had to downgrade.</p>
<p dir="auto">Silent pdf printing  is a very important feature and I have seen other people asking about it, but still no solution.</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"><em>No response</em></p>
<ul dir="auto">
<li>Electron version: 1.6.13</li>
<li>Operating system: MacOS High Sierra</li>
</ul>
<h3 dir="auto">Expected behavior</h3>

<p dir="auto">With Developer Tools open, close frameless window should performs correctly.</p>
<h3 dir="auto">Actual behavior</h3>

<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/31855269/34165621-cb6adfa8-e4aa-11e7-93c5-dccf255070da.gif"><img src="https://user-images.githubusercontent.com/31855269/34165621-cb6adfa8-e4aa-11e7-93c5-dccf255070da.gif" alt="window-retain" data-animated-image="" style="max-width: 100%;"></a></p>
<h3 dir="auto">How to reproduce</h3>

<p dir="auto">Create a frameless window with titlebar &amp; closeButton. Then openDevTools as an independent window. Close the main window directly, the window resource seems retains.</p>