<?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>171784</bug_id>
          
          <creation_ts>2017-05-06 20:01:59 -0700</creation_ts>
          <short_desc>fast/shadow-dom/link-element-in-shadow-tree.html is flaky</short_desc>
          <delta_ts>2020-01-18 13:17:25 -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>WebKit Local 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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>cdumez</cc>
    
    <cc>joepeck</cc>
    
    <cc>koivisto</cc>
    
    <cc>lforschler</cc>
    
    <cc>rniwa</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tsavell</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1305670</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-05-06 20:01:59 -0700</bug_when>
    <thetext>@@ -1,5 +1,5 @@
 
-PASS Link elements should load stylesheets inside a connected shadow tree with closed mode 
+FAIL Link elements should load stylesheets inside a connected shadow tree with closed mode promise_test: Unhandled rejection with value: &quot;timeout&quot;
 PASS Link elements should load stylesheets inside a connected shadow tree with open mode 
 PASS Link elements must not load stylesheets inside a disconnceted shadow tree with closed mode 
 PASS Link elements must not load stylesheets inside a disconnceted shadow tree with open mode</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600894</commentid>
    <comment_count>1</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2019-12-20 13:22:45 -0800</bug_when>
    <thetext>This same failure still appears to happen.

History:
https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fshadow-dom%2Flink-element-in-shadow-tree.html

The diff is the exact same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600895</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-12-20 13:23:11 -0800</bug_when>
    <thetext>&lt;rdar://problem/58123584&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600899</commentid>
    <comment_count>3</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2019-12-20 13:27:48 -0800</bug_when>
    <thetext>History shows this flakiness became a lot worse recently around r253500</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600904</commentid>
    <comment_count>4</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2019-12-20 13:45:51 -0800</bug_when>
    <thetext>marked test as failing in https://trac.webkit.org/changeset/253843/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606266</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-13 23:10:23 -0800</bug_when>
    <thetext>Hm... I can&apos;t reproduce this with:
./Tools/Scripts/run-webkit-tests --debug fast/shadow-dom/link-element-in-shadow-tree.html --iterations 100 --exit-after-n-failures=1 --no-show-results</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606279</commentid>
    <comment_count>6</comment_count>
      <attachid>387626</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-13 23:45:37 -0800</bug_when>
    <thetext>Created attachment 387626
Fixes the test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606280</commentid>
    <comment_count>7</comment_count>
      <attachid>387626</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2020-01-13 23:51:11 -0800</bug_when>
    <thetext>Comment on attachment 387626
Fixes the test

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

&gt; LayoutTests/ChangeLog:10
&gt; +        Load and cache the styleshe before any test cases run to avoid this timeout.

stylesheet</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606708</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-14 17:05:51 -0800</bug_when>
    <thetext>(In reply to Antti Koivisto from comment #7)
&gt; Comment on attachment 387626 [details]
&gt; Fixes the test
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=387626&amp;action=review
&gt; 
&gt; &gt; LayoutTests/ChangeLog:10
&gt; &gt; +        Load and cache the styleshe before any test cases run to avoid this timeout.
&gt; 
&gt; stylesheet

Oops, fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606711</commentid>
    <comment_count>9</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-14 17:09:39 -0800</bug_when>
    <thetext>Oops, also forgot to remove the flaky test expectation. Doing that in the same patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606713</commentid>
    <comment_count>10</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-14 17:11:11 -0800</bug_when>
    <thetext>This isn&apos;t really a regression. As far as I can tell, this test had already been flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606714</commentid>
    <comment_count>11</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-14 17:11:15 -0800</bug_when>
    <thetext>Committed r254546: &lt;https://trac.webkit.org/changeset/254546&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608372</commentid>
    <comment_count>12</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-17 22:10:03 -0800</bug_when>
    <thetext>The test appears to be no longer flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608379</commentid>
    <comment_count>13</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-17 22:40:07 -0800</bug_when>
    <thetext>I do not concur.

On open source bots, the test stopped failing even before this fix. On internal ones, I see failures even after the fix.


 PASS Link elements must not load stylesheets inside a disconnceted shadow tree with open mode 
 PASS Style rules loaded inside a shadow tree with closed mode must apply to a div in the shadow tree 
 PASS Style rules loaded inside a shadow tree with open mode must apply to a div in the shadow tree 
-PASS :host style rules loaded inside a shadow tree with closed mode must apply to the host element 
+FAIL :host style rules loaded inside a shadow tree with closed mode must apply to the host element promise_test: Unhandled rejection with value: &quot;timeout&quot;
 PASS :host style rules loaded inside a shadow tree with open mode must apply to the host element</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608380</commentid>
    <comment_count>14</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-17 22:43:31 -0800</bug_when>
    <thetext>Not sure if it&apos;s best to reopen or to have a new bug for a new fix in this case.

And thank you for following up after landing the fix!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608386</commentid>
    <comment_count>15</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-01-17 22:57:31 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #14)
&gt; Not sure if it&apos;s best to reopen or to have a new bug for a new fix in this
&gt; case.
&gt; 
&gt; And thank you for following up after landing the fix!

Oh, interesting. Maybe you can file a radar for the internal failure. I can follow up on that there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1608474</commentid>
    <comment_count>16</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-18 13:17:25 -0800</bug_when>
    <thetext>Filed rdar://problem/58713068</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>387626</attachid>
            <date>2020-01-13 23:45:37 -0800</date>
            <delta_ts>2020-01-13 23:51:11 -0800</delta_ts>
            <desc>Fixes the test</desc>
            <filename>bug-171784-20200113234536.patch</filename>
            <type>text/plain</type>
            <size>2316</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDI1NDQ5NykKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDIwLTAxLTEzICBSeW9zdWtlIE5pd2EgIDxy
bml3YUB3ZWJraXQub3JnPgorCisgICAgICAgIFJFR1JFU1NJT046IGZhc3Qvc2hhZG93LWRvbS9s
aW5rLWVsZW1lbnQtaW4tc2hhZG93LXRyZWUuaHRtbCBpcyBmbGFreQorICAgICAgICBodHRwczov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTcxNzg0CisgICAgICAgIDxyZGFyOi8v
cHJvYmxlbS81ODEyMzU4ND4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K
KworICAgICAgICBUaGUgdGltZW91dCBpcyBsaWtlbHkgY2F1c2VkIGJ5IHRoZSBzdHlsZXNoZWV0
IG5vdCBsb2FkaW5nIHdpdGhpbiAxMDBtcyB0aW1lb3V0IGluIHRoZSB2ZXJ5IGZpcn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b2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHRlc3Rf
aWZyYW1lKTsKICAgICB9KS50aGVuKGZ1bmN0aW9uICgpIHsKICAgICAgICAgY29uc3QgZG9jID0g
dGVzdF9pZnJhbWUuY29udGVudFdpbmRvdy5kb2N1bWVudDsK
</data>
<flag name="review"
          id="403395"
          type_id="1"
          status="+"
          setter="koivisto"
    />
          </attachment>
      

    </bug>

</bugzilla>