Calling the code `Object.freeze(window)` will cause the browser to redirect to `./undefined`. Not sure if this should be a JS bug or a DOM bug so I'm filing in JavaScriptCore for now. This appears to happen in Safari 6.1, Safari 7, Blackberry 10.2, and WebKit Nightly. Test case: http://ejohn.org/files/freeze-test.html Will end up redirecting to: http://ejohn.org/files/undefined
<rdar://problem/15323500>
Unable to reproduce using Safari 15.4 on macOS 12.4. Thanks!
Thank you for checking!