Hello, I have asks this question not stackoverflow and this really looks like a bug. Does on happen on chrome though ... http://stackoverflow.com/questions/9391317/safari-stays-loading-when-window-onbeforeunload-returns-false#comment11991113_9391317
I am able to retrieve the test case from Wayback Archive: https://web.archive.org/web/20120208202149/http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm I followed following steps: 1) Load URL 2) Click on any link 3) Selected "Stay on Page" from Dialog 4) Refreshed the page and it had dialog again. I tested following browsers using above: 1) Safari 15.6 on macOS 12.5 2) Chrome Canary 105 3) Firefox Nightly 104. All browser showed "dialog" box after page refresh but only Safari 15.6 was stuck in loading stage. If I am testing incorrectly, please test accordingly. Thanks!
<rdar://problem/97445952>