<?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>15220</bug_id>
          
          <creation_ts>2007-09-14 17:03:49 -0700</creation_ts>
          <short_desc>Tests expect window.name to be reset between page loads</short_desc>
          <delta_ts>2010-08-09 16:23:21 -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>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Perry">mpComplete</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>mihaip</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>460</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Perry">mpComplete</who>
    <bug_when>2007-09-14 17:03:49 -0700</bug_when>
    <thetext>Run this command (all one line):
run-webkit-tests fast/dom/Window/get-set-properties.html fast/loader/plain-text-document.html 

The second test will fail because the frame name is carried over from the first test.  Some test that is normally run in between must reset the frame name, or else the DRT is restarted sometime between the two tests.

I think a simple call to mainFrame-&gt;tree()-&gt;setName(&quot;&quot;) before each test is run should fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403</commentid>
    <comment_count>1</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-09-17 12:06:07 -0700</bug_when>
    <thetext>That would fix the problem, but I think a better fix would be to change the test. Maintaining the frame&apos;s name between page loads is correct behavior. We don&apos;t want our tests to rely on assumptions of incorrect behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-18 08:45:17 -0700</bug_when>
    <thetext>Confirmed with a local debug build of WebKit r25545 with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218).

I&apos;ve seen this failure before, but I don&apos;t recall whether any bugs were filed for it.  The new-DRT-is-started-every-1000 tests would magically &quot;fix&quot; this in cases where tests that changed window.name were in different DRT runs.

Has anyone tried &quot;run-webkit-tests --nthly=10000&quot; (to use a single instance of DRT) to see what kinds of failures one gets?  (Assuming there are less than 10000 tests still. :)

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>369</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-18 08:49:22 -0700</bug_when>
    <thetext>*** Bug 14944 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-18 08:51:37 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; *** Bug 14944 has been marked as a duplicate of this bug. ***

Similar failures result here (single command line):

$ run-webkit-tests fast/dom/Window http/tests/security

These would probably all fail if &quot;run-webkit-tests --nthly=10000&quot; were tried as well.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262389</commentid>
    <comment_count>5</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-08-09 16:23:21 -0700</bug_when>
    <thetext>Looks like http://trac.webkit.org/changeset/36652 fixed this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>