<?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>60937</bug_id>
          
          <creation_ts>2011-05-16 17:44:36 -0700</creation_ts>
          <short_desc>SunSpider: string-validate-input.js uses an undeclared variable named &apos;name&apos;, which is a DOM API</short_desc>
          <delta_ts>2011-07-02 13:57: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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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="Maciej Stachowiak">mjs</assigned_to>
          <cc>ap</cc>
    
    <cc>mjs</cc>
    
    <cc>psolanki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>404848</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2011-05-16 17:44:36 -0700</bug_when>
    <thetext>Here&apos;s the code:

      name = makeName(6);
      (k%2)?email=name+&quot;@mac.com&quot;:email=name+&quot;(at)mac.com&quot;;

Since &apos;name&apos; is undeclared, and window.name defaults to the DOM frame name API, this test spends a bunch of time getting and setting the name of the frame in the DOM.

Of course we want the DOM to be fast, but testing the DOM seems contrary to the goals of SunSpider.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404952</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-05-16 23:18:45 -0700</bug_when>
    <thetext>This is fixed in a r-&apos;ed patch attached to bug 17634, although with a slightly different rationale.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405403</commentid>
    <comment_count>2</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2011-05-17 16:57:24 -0700</bug_when>
    <thetext>It looks like Maciej planned to fix this, but never got around to it.

I think the important issue is to pick a name that doesn&apos;t conflict with a DOM API. Whether the variable is declared as a var or not is no big deal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>431633</commentid>
    <comment_count>3</comment_count>
      <attachid>99560</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2011-07-02 13:53:49 -0700</bug_when>
    <thetext>Created attachment 99560
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>431635</commentid>
    <comment_count>4</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2011-07-02 13:57:46 -0700</bug_when>
    <thetext>Committed r90318: &lt;http://trac.webkit.org/changeset/90318&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>99560</attachid>
            <date>2011-07-02 13:53:49 -0700</date>
            <delta_ts>2011-07-02 13:55:31 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-60937-20110702135348.patch</filename>
            <type>text/plain</type>
            <size>1442</size>
            <attacher name="Maciej Stachowiak">mjs</attacher>
            
              <data encoding="base64">SW5kZXg6IFBlcmZvcm1hbmNlVGVzdHMvU3VuU3BpZGVyL0NoYW5nZUxvZwo9PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0t
LSBQZXJmb3JtYW5jZVRlc3RzL1N1blNwaWRlci9DaGFuZ2VMb2cJKHJldmlzaW9u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BpZGVyLTEuMC9zdHJpbmctdmFsaWRhdGUtaW5wdXQuanMJKHdvcmtpbmcgY29weSkKQEAgLTEx
LDggKzExLDggQEAgZnVuY3Rpb24gZG9UZXN0KCkKICAgIC8vIG1ha2UgdXAgZW1haWwgYWRkcmVz
cwogICAgZm9yICh2YXIgaz0wO2s8NDAwMDtrKyspCiAgICB7Ci0gICAgICBuYW1lID0gbWFrZU5h
bWUoNik7Ci0gICAgICAoayUyKT9lbWFpbD1uYW1lKyJAbWFjLmNvbSI6ZW1haWw9bmFtZSsiKGF0
KW1hYy5jb20iOworICAgICAgdXNlcm5hbWUgPSBtYWtlTmFtZSg2KTsKKyAgICAgIChrJTIpP2Vt
YWlsPXVzZXJuYW1lKyJAbWFjLmNvbSI6ZW1haWw9dXNlcm5hbWUrIihhdCltYWMuY29tIjsKIAog
ICAgICAgLy8gdmFsaWRhdGUgdGhlIGVtYWlsIGFkZHJlc3MKICAgICAgIHZhciBwYXR0ZXJuID0g
L15bYS16QS1aMC05XC1cLl9dK0BbYS16QS1aMC05XC1fXSsoXC4/W2EtekEtWjAtOVwtX10qKVwu
W2EtekEtWl17MiwzfSQvOwo=
</data>
<flag name="review"
          id="94076"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>