Bug 123276 - Object.freeze(window) causes browser redirect
Summary: Object.freeze(window) causes browser redirect
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P2 Major
Assignee: Oliver Hunt
URL: http://ejohn.org/files/freeze-test.html
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-10-24 09:57 PDT by John Resig
Modified: 2022-05-31 10:17 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Resig 2013-10-24 09:57:54 PDT
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
Comment 1 Radar WebKit Bug Importer 2013-10-25 14:34:03 PDT
<rdar://problem/15323500>
Comment 2 Ahmad Saleem 2022-05-29 08:24:21 PDT
Unable to reproduce using Safari 15.4 on macOS 12.4. Thanks!
Comment 3 Alexey Proskuryakov 2022-05-31 10:17:46 PDT
Thank you for checking!