<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>
<ul dir="auto">
<li>
 
</li>
</ul>
</li>
</ul>
<p dir="auto">10.1.0</p>
<ul dir="auto">
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>
 
</li>
</ul>
</li>
</ul>
<p dir="auto">Windows 10 (19041)</p>
<ul dir="auto">
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>
 
</li>
</ul>
</li>
</ul>
<p dir="auto">N/A</p>
<h3 dir="auto">Expected Behavior</h3>
 
<p dir="auto">minimize() and maximize() to minimize and maximize the window respectively.</p>
<h3 dir="auto">Actual Behavior</h3>
 
<p dir="auto">nothing changed/happened.</p>
<h3 dir="auto">To Reproduce</h3>
 
<p dir="auto">remote.BrowserWindow.getFocusedWindow().minimize()</p>
 
<p dir="auto"><a href="https://gist.github.com/IncinerateZ/9aae814bf6d3e97c474be6629d9400e3">https://gist.github.com/IncinerateZ/9aae814bf6d3e97c474be6629d9400e3</a></p>


<p dir="auto">copy paste gist files to electron fiddle.</p>
<h3 dir="auto">Screenshots</h3>

<h3 dir="auto">Additional Information</h3>

<p dir="auto">strangely enough, close() does work.</p>
<ul dir="auto">
<li>Electron version: 1.7.9</li>
<li>Operating system: 10.12.6</li>
<li>Computer: Macbook Air</li>
</ul>
<p dir="auto">I am currently working on the implementation of the Web Bluetooth selection dialog. The above event returns a huge number of duplicates. I have seen everything between 17 and 107 entries; they seem to grow when I reload the JS code and re-open the dialog.</p>
<p dir="auto">When I remove all address duplicates, I end up with a few MAC addresses that seem to be auto-generated, because there is no vendor ID available for these addresses. This is the list of devices reported by my dialog:</p>
<p dir="auto">"CA:14:FF:2A:37:F4" InO-Bot<br>
"74:F9:BB:C1:60:BE" SBrick<br>
"1F:46:52:72:D6:07" Betty<br>
"48:F6:9B:C4:33:11" InO-Bot<br>
"34:81:F4:15:07:D4" InO-Bot<br>
"8C:DE:52:9A:DF:FC" Betty</p>
<p dir="auto">Both Betty and InO-Bot have invalid (?) MAC addresses, not assigned to any vendor ID. The correct addresses are 34:81... and 8C:DE...</p>
<p dir="auto">SBrick is a BLE-only device that has never been paired via the System Preferences. Betty and InO-Bot have been paired. After I removed the devices from the System Preferences Bluetooth dialog, I got a third entry for InO-Bot; before, I got two for both.</p>
<p dir="auto">Both Betty and InO-Bot support BLE and the old SPP protocol. I suspect that Mac OS creates serial ports and therefore generates the additional MAC addresses.</p>
<p dir="auto">I've attached an XML dump of my com.apple.Bluetooth system preferences.</p>
<p dir="auto"><a href="https://github.com/electron/electron/files/1385338/com.apple.Bluetooth.txt">com.apple.Bluetooth.txt</a></p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">List three BT devices</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">List of devices with several duplicates and apparently generated MAC addresses</p>