Bug 123276

Summary: Object.freeze(window) causes browser redirect
Product: WebKit Reporter: John Resig <jeresig>
Component: JavaScriptCoreAssignee: Oliver Hunt <oliver>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Major CC: ahmad.saleem792, barraclough, dbates, eoconnor, fpizlo, ggaren, oliver, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: Unspecified   
URL: http://ejohn.org/files/freeze-test.html

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