<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 issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
4.1.1</li>
<li><strong>Operating System:</strong><br>
Windows 10</li>
<li><strong>Last Known Working Electron version:</strong><br>
not sure</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">While loading a pdf (either local or remote url) Electron (well, underlying Chrome browser) simply downloads it instead of preview.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  &lt;webview id=&quot;foo&quot; src=&quot;http://www.pdf995.com/samples/pdf.pdf&quot; style=&quot;width:400px; height:480px;&quot;&gt;
    &lt;div class=&quot;indicator&quot;&gt;&lt;/div&gt;
  &lt;/webview&gt;"><pre class="notranslate"><code class="notranslate">  &lt;webview id="foo" src="http://www.pdf995.com/samples/pdf.pdf" style="width:400px; height:480px;"&gt;
    &lt;div class="indicator"&gt;&lt;/div&gt;
  &lt;/webview&gt;
</code></pre></div>
<h3 dir="auto">Actual Behavior</h3>

<h3 dir="auto">To Reproduce</h3>



<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1560821/60514861-fef78400-9cf7-11e9-914d-bdf6c58de8f1.JPG"><img src="https://user-images.githubusercontent.com/1560821/60514861-fef78400-9cf7-11e9-914d-bdf6c58de8f1.JPG" alt="pdf" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3>
<ul dir="auto">
<li>Electron version: 1.7.8</li>
<li>Operating system: macOS sierra,  windows7, windows10</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Refreshing the page does not effect other opened windows.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Refreshing the page will close other windows.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Open a new BrowserWindow and refresh the main window then the opened BrowserWindow is closed.</p>