Bug 123276
| Summary: | Object.freeze(window) causes browser redirect | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | John Resig <jeresig> |
| Component: | JavaScriptCore | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/15323500>
Ahmad Saleem
Unable to reproduce using Safari 15.4 on macOS 12.4. Thanks!
Alexey Proskuryakov
Thank you for checking!