<?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>182589</bug_id>
          
          <creation_ts>2018-02-07 17:08:33 -0800</creation_ts>
          <short_desc>REGRESSION(r227983): fast/dom/adopt-node-crash-2.html is flaky</short_desc>
          <delta_ts>2018-08-03 15:09:52 -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>UI Events</component>
          <version>WebKit 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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>eocanha</cc>
    
    <cc>jlewis3</cc>
    
    <cc>koivisto</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>1397386</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-02-07 17:08:33 -0800</bug_when>
    <thetext>Ryan Haddad 2018-02-07 16:57:14 PST
(In reply to Ryosuke Niwa from comment #20)
&gt; Committed r227983: &lt;https://trac.webkit.org/changeset/227983&gt;

This change has caused LayoutTest fast/dom/adopt-node-crash-2.html to become a flaky failure on High Sierra Release WK2 and Sierra Release WK2:
https://build.webkit.org/results/Apple%20Sierra%20Release%20WK2%20(Tests)/r228225%20(7494)/results.html

I am able to reproduce the failure with a build of r227984 with the following:
run-webkit-tests fast/dom/adopt-node-crash-2.html -fg --iter 100 --exit-after-n-failures 1

I cannot reproduce with a build of r227982.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1397586</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-02-08 10:49:23 -0800</bug_when>
    <thetext>Ryosuke, is this something you intend to fix shortly or do you want to mark the test as failing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1397642</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-02-08 12:14:38 -0800</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #1)
&gt; Ryosuke, is this something you intend to fix shortly or do you want to mark
&gt; the test as failing?

Sorry, adding a test expectation short terms is a good fix. Will look into it ASAP but I have another bug I need to urgently address first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1397657</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-02-08 12:49:02 -0800</bug_when>
    <thetext>(In reply to Ryosuke Niwa from comment #2)
&gt; (In reply to Ryan Haddad from comment #1)
&gt; &gt; Ryosuke, is this something you intend to fix shortly or do you want to mark
&gt; &gt; the test as failing?
&gt; 
&gt; Sorry, adding a test expectation short terms is a good fix. Will look into
&gt; it ASAP but I have another bug I need to urgently address first.

Marked test as flaky in https://trac.webkit.org/r228288.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1397701</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-02-08 13:43:26 -0800</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398838</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-02-13 16:14:00 -0800</bug_when>
    <thetext>&lt;rdar://problem/37517904&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398856</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-02-13 16:54:02 -0800</bug_when>
    <thetext>--- /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/fast/dom/adopt-node-crash-2-expected.txt
+++ /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/fast/dom/adopt-node-crash-2-actual.txt
@@ -1,3 +1,2 @@
 Tests for a crash due to adopting a DOM node during DOMFocusOut event. Test passes if it doesn&apos;t crash.
 
-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1423014</commentid>
    <comment_count>7</comment_count>
      <attachid>340165</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-05-10 20:45:02 -0700</bug_when>
    <thetext>Created attachment 340165
Speculative fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1423015</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-05-10 20:46:28 -0700</bug_when>
    <thetext>I can&apos;t reproduce this flakiness locally, and we haven&apos;t seen the flakiness since April but GTK+ bots are still occasionally seeing it. I think r227983 introducing a flakiness to this test sort of makes sense since it delays the layout update upon focus so I&apos;ve crafted a speculative fix for it based on my observation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1423026</commentid>
    <comment_count>9</comment_count>
      <attachid>340165</attachid>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2018-05-10 21:26:55 -0700</bug_when>
    <thetext>Comment on attachment 340165
Speculative fix

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

&gt; LayoutTests/fast/dom/adopt-node-crash-2.html:39
&gt;      setTimeout(&quot;doit()&quot;, 1);

The `1` is an interesting choice here. Does it not work if we schedule this on a 0-delay timer?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1423028</commentid>
    <comment_count>10</comment_count>
      <attachid>340165</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-05-10 21:38:47 -0700</bug_when>
    <thetext>Comment on attachment 340165
Speculative fix

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

&gt;&gt; LayoutTests/fast/dom/adopt-node-crash-2.html:39
&gt;&gt;      setTimeout(&quot;doit()&quot;, 1);
&gt; 
&gt; The `1` is an interesting choice here. Does it not work if we schedule this on a 0-delay timer?

Indeed... I think it probably would but I couldn&apos;t figure out if this test would catch the bug after that change
since reverting https://trac.webkit.org/changeset/135914 is kind of hard at this point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1423043</commentid>
    <comment_count>11</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-05-10 22:00:25 -0700</bug_when>
    <thetext>Committed r231690: &lt;https://trac.webkit.org/changeset/231690&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1446484</commentid>
    <comment_count>12</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-07-30 23:07:36 -0700</bug_when>
    <thetext>Oops, the test is still failing because I forgot to update the expected result &amp; remove the flaky expectation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447042</commentid>
    <comment_count>13</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-08-01 16:26:04 -0700</bug_when>
    <thetext>Committed r234485: &lt;https://trac.webkit.org/changeset/234485&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447790</commentid>
    <comment_count>14</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-08-03 15:09:34 -0700</bug_when>
    <thetext>*** Bug 132183 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447791</commentid>
    <comment_count>15</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2018-08-03 15:09:52 -0700</bug_when>
    <thetext>The test appears to be passing consistently now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>340165</attachid>
            <date>2018-05-10 20:45:02 -0700</date>
            <delta_ts>2018-05-10 21:26:55 -0700</delta_ts>
            <desc>Speculative fix</desc>
            <filename>bug-182589-20180510204502.patch</filename>
            <type>text/plain</type>
            <size>2425</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDIzMTY4NikKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQCAtMSwzICsxLDE5IEBACisyMDE4LTA1LTEwICBSeW9zdWtlIE5pd2EgIDxy
bml3YUB3ZWJraXQub3JnPgorCisgICAgICAgIFJFR1JFU1NJT04ocjIyNzk4Myk6IGZhc3QvZG9t
L2Fkb3B0LW5vZGUtY3Jhc2gtMi5odG1sIGlzIGZsYWt5CisgICAgICAgIGh0dHBzOi8vYnVncy53
ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xODI1ODkKKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBUaGlzIGlzIGEgc3BlY3VsYXRpdmUgZml4IGZvciB0
aGUgdGVzdCBzaW5jZSBJIGNhbid0IHJlcHJvZHVjZSB0aGUgZmxha2luZXNzIGxvY2FsbHkuIEJl
Y2F1c2UgcjIyNzk4MyBtYWtlcworICAgICAgICB0aGUgbGF5b3V0IHVwZGF0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kgeword2luZG93Lm9ubG9hZCA9IGZ1bmN0aW9uKCkgeworICAgIGlmICh3aW5kb3cuaW50
ZXJuYWxzKQorICAgICAgICBpbnRlcm5hbHMudXBkYXRlTGF5b3V0SWdub3JlUGVuZGluZ1N0eWxl
c2hlZXRzQW5kUnVuUG9zdExheW91dFRhc2tzKCk7CisgICAgZWxzZQorICAgICAgICBkaXYyLmdl
dEJvdW5kaW5nQ2xpZW50UmVjdCgpOwogICAgIHNldFRpbWVvdXQoImRvaXQoKSIsIDEpOwotfSwg
ZmFsc2UpOworfQogPC9zY3JpcHQ+CiA8L2h0bWw+Cg==
</data>
<flag name="review"
          id="358412"
          type_id="1"
          status="+"
          setter="wenson_hsieh"
    />
          </attachment>
      

    </bug>

</bugzilla>