<?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>163362</bug_id>
          
          <creation_ts>2016-10-12 15:13:31 -0700</creation_ts>
          <short_desc>REGRESSION (r207162): [ios-simulator] LayoutTest platform/ios-simulator/ios/plugin/youtube-flash-plugin-iframe.html became more flaky</short_desc>
          <delta_ts>2017-12-13 12:55:07 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=163127</see_also>
          <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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>dbates</cc>
    
    <cc>jlewis3</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1239532</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-10-12 15:13:31 -0700</bug_when>
    <thetext>LayoutTest platform/ios-simulator/ios/plugin/youtube-flash-plugin-iframe.html failing

https://build.webkit.org/results/Apple%20iOS%2010%20Simulator%20Debug%20WK2%20(Tests)/r207162%20(707)/results.html

http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=platform%2Fios-simulator%2Fios%2Fplugin%2Fyoutube-flash-plugin-iframe.html

--- /Volumes/Data/slave/ios-simulator-10-debug-tests-wk2/build/layout-test-results/platform/ios-simulator/ios/plugin/youtube-flash-plugin-iframe-expected.txt
+++ /Volumes/Data/slave/ios-simulator-10-debug-tests-wk2/build/layout-test-results/platform/ios-simulator/ios/plugin/youtube-flash-plugin-iframe-actual.txt
@@ -2,7 +2,6 @@
 Blocked access to external URL http://www.youtube.com/embed/N0gb9v4LI4o
 Blocked access to external URL http://www.youtube.com/embed/N0gb9v4LI4o?version=3&amp;hl=en_US
 Blocked access to external URL http://www.youtube.com/embed/N0gb9v4LI4o?version=3&amp;hl=en_US
-Blocked access to external URL http://www.youtube.com/embed/N0gb9v4LI4o
 Test transforming youtube flash plugin to youtube iFrame based player. &lt; rdar://problem/11201356&gt;
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
@@ -19,8 +18,8 @@
 PASS objectEmbedShadowRoot.firstChild.firstChild.tagName is &quot;IFRAME&quot;
 PASS internals.shadowPseudoId(objectNoEmbedShadowRoot.firstChild) is &quot;-webkit-plugin-replacement&quot;
 PASS objectNoEmbedShadowRoot.firstChild.firstChild.tagName is &quot;IFRAME&quot;
-PASS internals.shadowPseudoId(normalEmbedInIframeShadowRoot.firstChild) is &quot;-webkit-plugin-replacement&quot;
-PASS normalEmbedInIframeShadowRoot.firstChild.firstChild.tagName is &quot;IFRAME&quot;
+FAIL internals.shadowPseudoId(normalEmbedInIframeShadowRoot.firstChild) should be -webkit-plugin-replacement. Threw exception TypeError: null is not an object (evaluating &apos;normalEmbedInIframeShadowRoot.firstChild&apos;)
+FAIL normalEmbedInIframeShadowRoot.firstChild.firstChild.tagName should be IFRAME. Threw exception TypeError: null is not an object (evaluating &apos;normalEmbedInIframeShadowRoot.firstChild&apos;)
 PASS successfullyParsed is true
 
 TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1239533</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-10-12 15:14:10 -0700</bug_when>
    <thetext>Flakiness dashboard seems to indicate that this may be fallout from http://trac.webkit.org/changeset/207162</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1241226</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-10-17 16:03:54 -0700</bug_when>
    <thetext>Marked as flaky in http://trac.webkit.org/projects/webkit/changeset/207440</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1251531</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-11-15 11:49:08 -0800</bug_when>
    <thetext>Alex, is this something that you are looking into?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1251573</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-11-15 12:52:13 -0800</bug_when>
    <thetext>Not actively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1251591</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-11-15 13:32:30 -0800</bug_when>
    <thetext>&lt;rdar://problem/29274536&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258086</commentid>
    <comment_count>6</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-12-08 23:26:42 -0800</bug_when>
    <thetext>I verified that this test works fine for me locally.

run-webkit-tests platform/ios-simulator/ios/plugin/youtube-flash-plugin-iframe.html --ios-simulator --iterations=10 --repeat-each=10

I think we should just unskip it.  What do you think, Alexey?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258087</commentid>
    <comment_count>7</comment_count>
      <attachid>296647</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-12-08 23:34:56 -0800</bug_when>
    <thetext>Created attachment 296647
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258088</commentid>
    <comment_count>8</comment_count>
      <attachid>296647</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-12-08 23:42:32 -0800</bug_when>
    <thetext>Comment on attachment 296647
Patch

Nope, I can reproduce this about 10% of the time.  URLParser enabled or not, doesn&apos;t matter.  This means it&apos;s probably not related to the URLParser being enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258090</commentid>
    <comment_count>9</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-12-08 23:46:10 -0800</bug_when>
    <thetext>I&apos;m not familiar with this test, or why these URLs should be blocked.  Dan, what is going on here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258155</commentid>
    <comment_count>10</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2016-12-09 09:51:10 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; I&apos;m not familiar with this test, or why these URLs should be blocked.  Dan,
&gt; what is going on here?

The &quot;Blocked access to external URL&quot; messages are because we do not allow external connections when running a test in DRT/WKTR. They can be ignored for the purposes of this test.

&gt; +FAIL internals.shadowPseudoId(normalEmbedInIframeShadowRoot.firstChild) should be -webkit-plugin-replacement. Threw exception TypeError: null is not an object (evaluating &apos;normalEmbedInIframeShadowRoot.firstChild&apos;)

This means that that the plugin had not been not replaced by the time we checked. Plugin/plugin replacement loading is asynchronous with respect to the initial parsing of an HTML object/embed. We need to find a better way to know when a plugin/plugin-replacement has loaded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258157</commentid>
    <comment_count>11</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2016-12-09 09:52:10 -0800</bug_when>
    <thetext>(In reply to comment #10)
&gt; We need to find a better way to know when a plugin/plugin-replacement has loaded.

I meant to write:

We need to find a better way to know when a plugin/plugin-replacement has loaded than using a zero timer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258168</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-12-09 10:08:01 -0800</bug_when>
    <thetext>Checking internal test history, I see this test being flaky on ASan and GuardMalloc bots even in September. Also, WebKit1 was a flaky failure.

But debug WK2 bots did indeed see a very sharp increase in flakiness around r207162.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259153</commentid>
    <comment_count>13</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-12-12 12:12:43 -0800</bug_when>
    <thetext>Having concluded that this was not related to the URLParser change because of the equal flakiness rate with or without the URLParser, I&apos;m removing myself as the assignee and I do not intend to look into this further.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259162</commentid>
    <comment_count>14</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-12-12 12:50:10 -0800</bug_when>
    <thetext>Alex and I looked at the flakiness rate, and it has very clearly increased dramatically around r207162. There isn&apos;t really another change close enough that can be blamed.

There were no failures for ~200 revisions before r207162. Here is the history around it:

207158 oooo (this revision was tested 4 times, with 4 passes)
207159 o
207160 (this exact revision hasn&apos;t been tested)
207161 o
207162 x (tested once, failed)
207163 o (tested once, passed)
207164 xxxxoo (this revision was tested 6 times, with 4 failures and 2 passes)
207165 x
207166 xo
207167
207168 xx
207169 xx

r207161 is a contributors.json change
r207160 is purely a WebKit1 change
r207159 is a change to iOS 9 built apps that could theoretically have a bug, but it just uses standard settings machinery, unlikely to be wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259168</commentid>
    <comment_count>15</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-12-12 12:56:54 -0800</bug_when>
    <thetext>It seems likely that it&apos;s not an obvious outright bug in the URL parser causing this, but some kind of subtle change (perhaps timing), but we still need to make the test work again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1375883</commentid>
    <comment_count>16</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-11-29 09:50:59 -0800</bug_when>
    <thetext>This test now fails 100% of the time on debug and it is flaky on release.

Here is the diff from a release build:
--- /Volumes/Data/slave/ios-simulator-11-release-tests-wk2/build/layout-test-results/platform/ios/ios/plugin/youtube-flash-plugin-iframe-expected.txt
+++ /Volumes/Data/slave/ios-simulator-11-release-tests-wk2/build/layout-test-results/platform/ios/ios/plugin/youtube-flash-plugin-iframe-actual.txt
@@ -15,8 +15,8 @@
 PASS document.querySelectorAll(&quot;iframe&quot;).length is 1
 PASS internals.shadowPseudoId(normalEmbedShadowRoot.firstChild) is &quot;-webkit-plugin-replacement&quot;
 PASS normalEmbedShadowRoot.firstChild.firstChild.tagName is &quot;IFRAME&quot;
-PASS internals.shadowPseudoId(objectEmbedShadowRoot.firstChild) is &quot;-webkit-plugin-replacement&quot;
-PASS objectEmbedShadowRoot.firstChild.firstChild.tagName is &quot;IFRAME&quot;
+FAIL internals.shadowPseudoId(objectEmbedShadowRoot.firstChild) should be -webkit-plugin-replacement. Threw exception TypeError: null is not an object (evaluating &apos;objectEmbedShadowRoot.firstChild&apos;)
+FAIL objectEmbedShadowRoot.firstChild.firstChild.tagName should be IFRAME. Threw exception TypeError: null is not an object (evaluating &apos;objectEmbedShadowRoot.firstChild&apos;)
 PASS internals.shadowPseudoId(objectNoEmbedShadowRoot.firstChild) is &quot;-webkit-plugin-replacement&quot;
 PASS objectNoEmbedShadowRoot.firstChild.firstChild.tagName is &quot;IFRAME&quot;
 PASS internals.shadowPseudoId(normalEmbedInIframeShadowRoot.firstChild) is &quot;-webkit-plugin-replacement&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381251</commentid>
    <comment_count>17</comment_count>
    <who name="Matt Lewis">jlewis3</who>
    <bug_when>2017-12-13 12:55:07 -0800</bug_when>
    <thetext>This is still happening as of 12/13/2017

Updated Expectations:
https://trac.webkit.org/changeset/225867/webkit</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>296647</attachid>
            <date>2016-12-08 23:34:56 -0800</date>
            <delta_ts>2016-12-08 23:42:32 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-163362-20161208233414.patch</filename>
            <type>text/plain</type>
            <size>2452</size>
            <attacher name="Alex Christensen">achristensen</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDIwOTU5NykKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDE2LTEyLTA4ICBBbGV4IENocmlzdGVuc2Vu
ICA8YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CisKKyAgICAgICAgUkVHUkVTU0lPTiAocjIwNzE2
Mik6IFtpb3Mtc2ltdWxhdG9yIGRlYnVnXSBMYXlvdXRUZXN0IHBsYXRmb3JtL2lvcy1zaW11bGF0
b3IvaW9zL3BsdWdpbi95b3V0dWJlLWZsYXNoLXBsdWdpbi1pZnJhbWUuaHRtbCBmYWlsaW5nCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNjMzNjIKKwor
ICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIHBsYXRmb3Jt
L2lvcy1zaW11bGF0b3Itd2sxL1Rlc3RFeHBlY3RhdGlvbnM6CisgICAgICAgICogcGxhdGZvcm0v
aW9zLXNpbXVsYXRvci13azIvVGVzdEV4cGVjdGF0aW9uczoKKyAgICAgICAgVW5za2lwIHRoZS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1l
Lmh0bWwgWyBQYXNzIEZhaWx1cmUgXQotCiB3ZWJraXQub3JnL2IvMTY0OTYwIFsgUmVsZWFzZSBd
IGh0dHAvdGVzdHMvc2VjdXJpdHkvbW9kdWxlLWNvcnJlY3QtbWltZS10eXBlcy5odG1sIFsgU2xv
dyBdCiAKIHdlYmtpdC5vcmcvYi8xNjQ5NjEgWyBSZWxlYXNlIF0gaHR0cC90ZXN0cy9zdG9yYWdl
L2NhbGxiYWNrcy1hcmUtY2FsbGVkLWluLWNvcnJlY3QtY29udGV4dC5odG1sIFsgVGltZW91dCBd
Cg==
</data>
<flag name="review"
          id="319064"
          type_id="1"
          status="-"
          setter="achristensen"
    />
          </attachment>
      

    </bug>

</bugzilla>