<?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>54020</bug_id>
          
          <creation_ts>2011-02-08 10:45:05 -0800</creation_ts>
          <short_desc>fast/dom/null-document-location-href-put-crash.html is flaky</short_desc>
          <delta_ts>2011-02-10 17:22:39 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>54157</dup_id>
          
          <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="Mario Sanchez Prada">mario</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>347503</commentid>
    <comment_count>0</comment_count>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2011-02-08 10:45:05 -0800</bug_when>
    <thetext>This test is randomly failing every now and then in the GTK 32 bit release bot.

As matter of fact I&apos;ve observed today the following behavior:

  - Failed on builds #10506 and #10507
  - Success on #10508 and #10509
  - Fails on #10510
  - Success on #10511
  - Failed on #10512 and #10513
  - Success on #10514


The diff output when failing is always the same:

--- /var/lib/buildbot/build/gtk-linux-32-release/build/layout-test-results/fast/dom/null-document-location-href-put-crash-expected.txt	2011-02-08 08:51:34.000000000 -0800
+++ /var/lib/buildbot/build/gtk-linux-32-release/build/layout-test-results/fast/dom/null-document-location-href-put-crash-actual.txt	2011-02-08 08:51:34.000000000 -0800
@@ -1,4 +1,4 @@
+FAIL: Timed out waiting for notifyDone to be called
 This test checks for a NULL document crash that can happen when setting location.href. If the test passes, you&apos;ll see a PASS message below.
 
-PASS: You didn&apos;t crash.


Could it be that the usage of setTimeout(), combined with the fact of executing that JS code in the iframe, was leading to a race condition on here?

   [...]

   function main()
   {
       if (window.layoutTestController) {
           layoutTestController.dumpAsText();
           layoutTestController.waitUntilDone();
       }    
    
       // setTimeout forces execution in the context of the frame
       frames[0].setTimeout(test, 0);
   }

   [...]


Adding the author of the layout test in the meanwhile. Not skipping yet since at the moment is not failing (build 10514)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349527</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-02-10 17:22:39 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 54157 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>