Not even a bug, but rather a flaw in the interface allows you to create a page that cannot be closed in Google Chrome. Proof: wifix.ru/onbeforeunload/test.html
In the above example, the warning will be shown only ten times, but nothing prevents you from showing it endlessly.
ohm was able to reproduce the problem in IE 10. ')
azproduction wrote:
In the beforeunload handler, we make a synchronous XHR to the server that keeps the connection, but never the connection.The tab will never close no matter how much you put in it.In Chrome, this problem is resolved - the second click on [x] closes the tab.
Also in Chrome there is a feature when displaying modal windows. Window with alert is global for all tabs. As a result, you cannot switch to another tab without closing the modal window. Example wifix.ru/onbeforeunload/page.html
In combination with the first problem, it allows you to create significant discomfort: Carefully screamer: _ttp: //wifix.ru/onbeforeunload/screamer.html