When viewed using the host 127.0.0.1, this page has an iframe whose security origin is different from the main frame.
The iframe has a beforeunload handler, and that handler should not result in the display of the page dismissal dialog since the security origins differ.