<?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>11884</bug_id>
          
          <creation_ts>2006-12-19 16:05:19 -0800</creation_ts>
          <short_desc>FunctionProtoFunc::callAsFunction uses the wrong global object as &apos;this&apos; in the apply case</short_desc>
          <delta_ts>2011-12-25 15:49:26 -0800</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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>64250</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>jwalden+bwo</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41074</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-19 16:05:19 -0800</bug_when>
    <thetext>See attached test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41075</commentid>
    <comment_count>1</comment_count>
      <attachid>11925</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-19 16:06:12 -0800</bug_when>
    <thetext>Created attachment 11925
reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41076</commentid>
    <comment_count>2</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-19 16:06:46 -0800</bug_when>
    <thetext>We should probably analyze what we use for the global object in other cases, as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41078</commentid>
    <comment_count>3</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-19 16:09:25 -0800</bug_when>
    <thetext>You have to open the reduction locally, to avoid a JavaScript security exception. See bug 11885.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41085</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-12-19 21:22:23 -0800</bug_when>
    <thetext>Is this the same as bug 7831?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41090</commentid>
    <comment_count>5</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-12-20 00:48:47 -0800</bug_when>
    <thetext>I think bug 7831 is specifically about eval.apply, and not about apply in general, or multiple global objects. It&apos;s possible that fixing one may fix the other, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71226</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-02-20 06:33:31 -0800</bug_when>
    <thetext>&lt;rdar://problem/5754363&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84652</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-06-28 03:47:29 -0700</bug_when>
    <thetext>Sam, this page succeeds in ffx3, but fails with a security check failure in ToT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84659</commentid>
    <comment_count>8</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2008-06-28 09:01:56 -0700</bug_when>
    <thetext>We have different rules than Firefox regarding data: urls (we are much more strict).  It doesn&apos;t seem like that is what this test is really testing though.  To do the real test, just put the content from the data: url into its own file.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>527083</commentid>
    <comment_count>9</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2011-12-25 15:49:26 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 64250 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11925</attachid>
            <date>2006-12-19 16:06:12 -0800</date>
            <delta_ts>2006-12-19 16:06:12 -0800</delta_ts>
            <desc>reduction</desc>
            <filename>reduction.html</filename>
            <type>text/html</type>
            <size>280</size>
            <attacher name="Geoffrey Garen">ggaren</attacher>
            
              <data encoding="base64">PGlmcmFtZSBzcmM9ImRhdGE6dGV4dC9odG1sLCA8c2NyaXB0PnRoaXMueCA9IDI7IGZ1bmN0aW9u
IGdldFgoKSB7IHJldHVybiB0aGlzLng7IH08L3NjcmlwdD4iPjwvaWZyYW1lPgo8cHJlIGlkPSJs
b2ciPjwvcHJlPgo8c2NyaXB0Pgp3aW5kb3cub25sb2FkID0gZnVuY3Rpb24oKSB7CiAgICB0aGlz
LnggPSAxOwogICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2xvZycpLmlubmVySFRNTCA9ICJT
aG91bGQgYmUgMjogIiArIGZyYW1lc1swXS5nZXRYLmFwcGx5KCk7Cn0KPC9zY3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>