<ul dir="auto">
<li>Electron Version: 1.8.7/2.0.0</li>
<li>Operating System (Platform and Version): Windows 10</li>
<li>Last known working Electron version: Don't know</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Keep the webview available to interact.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Every time the webview execute <code class="notranslate">window.close()</code>, it's crashing the webview itself.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/saenzramiro/electron-window-close-bug.git
$ npm install
$ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/saenzramiro/electron-window-close-bug.git
$ npm install
$ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div>
<p dir="auto"><strong>Additional Information</strong><br>
I realized this because of Slack's. Every time you log in or log out, they redirect to a page that executes <code class="notranslate">window.close()</code>. I searched of this here but no luck, sorry if this is duplicated.</p>
<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: 3.0.0</li>
<li>Operating System (Platform and Version): macOS Sierra 10.12.6</li>
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): 3.0.0-beta.1</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
creating a new browserWindow with titleBarStyle: hiddenInset, hidden or customButtonsOnHover, should generate the 'traffic lights' in macOS.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
The window doesn't generate the traffic lights, making impossible to control the window. (The buttons actions are still in the same visual place, it's just not being rendered).</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Just create a browser window and set the titleBarStyle to one of the options available.</p>