<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>123276</bug_id>
          
          <creation_ts>2013-10-24 09:57:54 -0700</creation_ts>
          <short_desc>Object.freeze(window) causes browser redirect</short_desc>
          <delta_ts>2022-05-31 10:17:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://ejohn.org/files/freeze-test.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="John Resig">jeresig</reporter>
          <assigned_to name="Oliver Hunt">oliver</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>barraclough</cc>
    
    <cc>dbates</cc>
    
    <cc>eoconnor</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>oliver</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>943183</commentid>
    <comment_count>0</comment_count>
    <who name="John Resig">jeresig</who>
    <bug_when>2013-10-24 09:57:54 -0700</bug_when>
    <thetext>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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>943757</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-10-25 14:34:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/15323500&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872620</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-05-29 08:24:21 -0700</bug_when>
    <thetext>Unable to reproduce using Safari 15.4 on macOS 12.4. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873019</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-05-31 10:17:46 -0700</bug_when>
    <thetext>Thank you for checking!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>