<?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>103115</bug_id>
          
          <creation_ts>2012-11-23 03:19:56 -0800</creation_ts>
          <short_desc>http/tests/loading/remove-child-triggers-parser.html is flaky</short_desc>
          <delta_ts>2020-02-04 20:03:00 -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>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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Kukkonen (jku)">jussi.kukkonen</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>jacob_uphoff</cc>
    
    <cc>jbedard</cc>
    
    <cc>rniwa</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>774366</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Kukkonen (jku)">jussi.kukkonen</who>
    <bug_when>2012-11-23 03:19:56 -0800</bug_when>
    <thetext>The following layout test is flaky on various platforms but especially so on WK2 EFL:

http/tests/loading/remove-child-triggers-parser.html

Testing locally, the first run seems to print correct output, except it&apos;s missing the last empty line of output. Running with --iterations shows all the subsequent runs passing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1247074</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-11-01 15:08:21 -0700</bug_when>
    <thetext>https://build.webkit.org/builders/Apple%20Sierra%20Debug%20WK1%20(Tests)/builds/1034

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=http%2Ftests%2Floading%2Fremove-child-triggers-parser.html

--- /Volumes/Data/slave/sierra-debug-tests-wk1/build/layout-test-results/http/tests/loading/remove-child-triggers-parser-expected.txt
+++ /Volumes/Data/slave/sierra-debug-tests-wk1/build/layout-test-results/http/tests/loading/remove-child-triggers-parser-actual.txt
@@ -3,4 +3,3 @@
 main frame - didFinishDocumentLoadForFrame
 main frame - didHandleOnloadEventsForFrame
 main frame - didFinishLoadForFrame
-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248358</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-11-04 16:22:24 -0700</bug_when>
    <thetext>Some brief analysis of the failures of this test shows that it has the very odd feature of it&apos;s failures sharing a very long list of tests (a few hundred) which were executed before failures and not before successes.  I will run this analysis on a larger set of success/failures, my guess would be that this test isn&apos;t flakey, it&apos;s order dependent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609985</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-22 23:09:01 -0800</bug_when>
    <thetext>*** Bug 206628 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609986</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-22 23:09:31 -0800</bug_when>
    <thetext>&lt;rdar://problem/58815922&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609988</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-22 23:12:26 -0800</bug_when>
    <thetext>&gt; setTimeout(function() { var child = document.documentElement; child.parentNode.removeChild(child); }, 36);

Certainly smells like a not so great test. Since this is a test for a security bug, it may be important enough to deflake. CC&apos;ing Ryosuke, who reviewed it many years ago.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611683</commentid>
    <comment_count>6</comment_count>
      <attachid>388933</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-27 16:13:16 -0800</bug_when>
    <thetext>Created attachment 388933
Deflake the test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611705</commentid>
    <comment_count>7</comment_count>
      <attachid>388933</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-27 16:53:37 -0800</bug_when>
    <thetext>Comment on attachment 388933
Deflake the test

View in context: https://bugs.webkit.org/attachment.cgi?id=388933&amp;action=review

&gt; LayoutTests/http/tests/loading/remove-child-triggers-parser.html:13
&gt; +}, 36);

36? Can we just do this in onload instead?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611742</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-27 17:39:51 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #7)
&gt; Comment on attachment 388933 [details]
&gt; Deflake the test
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=388933&amp;action=review
&gt; 
&gt; &gt; LayoutTests/http/tests/loading/remove-child-triggers-parser.html:13
&gt; &gt; +}, 36);
&gt; 
&gt; 36? Can we just do this in onload instead?

Sure. I think we still want to wait more than 0s (I think the threshold is 5ms or 10ms). Will delay until load event &amp; then schedule a timer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611784</commentid>
    <comment_count>9</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-27 19:55:01 -0800</bug_when>
    <thetext>Committed r255223: &lt;https://trac.webkit.org/changeset/255223&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611938</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-28 08:36:56 -0800</bug_when>
    <thetext>I wouldn&apos;t expect needing a timer after the load event.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612912</commentid>
    <comment_count>11</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-01-30 04:44:05 -0800</bug_when>
    <thetext>&gt; Committed r255223: &lt;https://trac.webkit.org/changeset/255223&gt;
This change might have made this test fail consistently on windows, tracked in Bug 206992. Can you please have a look?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1614917</commentid>
    <comment_count>12</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-02-04 20:03:00 -0800</bug_when>
    <thetext>(In reply to Aakash Jain from comment #11)
&gt; &gt; Committed r255223: &lt;https://trac.webkit.org/changeset/255223&gt;
&gt; This change might have made this test fail consistently on windows, tracked
&gt; in Bug 206992. Can you please have a look?

FWIW, I&apos;ve fixed this, and it looks like the test is no long flaky &amp; not falling on Windows now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>388933</attachid>
            <date>2020-01-27 16:13:16 -0800</date>
            <delta_ts>2020-01-27 16:53:37 -0800</delta_ts>
            <desc>Deflake the test</desc>
            <filename>bug-103115-20200127161315.patch</filename>
            <type>text/plain</type>
            <size>2138</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGF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B7CiAgICAgdGVzdFJ1bm5lci5kdW1wQXNUZXh0KCk7
Ci1zZXRUaW1lb3V0KGZ1bmN0aW9uKCkgeyB2YXIgY2hpbGQgPSBkb2N1bWVudC5kb2N1bWVudEVs
ZW1lbnQ7IGNoaWxkLnBhcmVudE5vZGUucmVtb3ZlQ2hpbGQoY2hpbGQpOyB9LCAzNik7CisgICAg
dGVzdFJ1bm5lci53YWl0VW50aWxEb25lKCk7Cit9CitzZXRUaW1lb3V0KGZ1bmN0aW9uKCkgewor
ICAgIHZhciBjaGlsZCA9IGRvY3VtZW50LmRvY3VtZW50RWxlbWVudDsKKyAgICBjaGlsZC5wYXJl
bnROb2RlLnJlbW92ZUNoaWxkKGNoaWxkKTsKKyAgICBpZiAod2luZG93LnRlc3RSdW5uZXIpCisg
ICAgICAgIHRlc3RSdW5uZXIubm90aWZ5RG9uZSgpOworfSwgMzYpOwogPC9zY3JpcHQ+CiA8c2Ny
aXB0Pjwvc2NyaXB0PgogPHNwYW4+PC9zcGFuPgo=
</data>
<flag name="review"
          id="404636"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>