Javascript:self.close(); leaves an inactive window open.



Javascript:self.close(); function leaves an inactive window open.

Steps to Reproduce

1.Open the developer tools (ctrl + shift + I)
2.In the developer console, execute; to open a new window (since scripts may not close windows that were not opened by script.) the newly opened window or tab (you may need to allow popups) the developer tools for the new window (or tab) the developer console for the new window, execute self.close();

Actual result:
The window stays on-screen and the contents of the page are still visible but no longer interactive.

Expected result:
The window should close.

I verified this technique works in Chrome 67 and Firefox 60.0.2 (64-bit)

Reproduces how often:


Brave Version

about:brave info:

Brave: 0.22.727
V8: 6.6.346.32
rev: 2c94bbad00d70b87328f04574725979960e18f9f
Muon: 6.0.12
OS Release: 10.0.17134
Update Channel: Release
OS Architecture: x64
OS Platform: Microsoft Windows
Node.js: 7.9.0
Brave Sync: v1.4.2
libchromiumcontent: 66.0.3359.170

Reproducible on current live release:


Additional Information

OS is Windows 10 Professional version 1803 build 17134.48