<?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>165590</bug_id>
          
          <creation_ts>2016-12-07 21:15:57 -0800</creation_ts>
          <short_desc>REGRESSION (r209490): [ios-simulator] LayoutTest fast/shadow-dom/media-shadow-manipulation.html is failing</short_desc>
          <delta_ts>2016-12-08 08:18:22 -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 Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>lforschler</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1257594</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-12-07 21:15:57 -0800</bug_when>
    <thetext>LayoutTest fast/shadow-dom/media-shadow-manipulation.html is failing

https://build.webkit.org/results/Apple%20iOS%2010%20Simulator%20Release%20WK2%20(Tests)/r209515%20(2211)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=fast%2Fshadow-dom%2Fmedia-shadow-manipulation.html

--- /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/fast/shadow-dom/media-shadow-manipulation-expected.txt
+++ /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/fast/shadow-dom/media-shadow-manipulation-actual.txt
@@ -1,5 +1,6 @@
-PASS bounds = video_element.getBoundingClientRect(); document.caretRangeFromPoint(bounds.left + 10, bounds.bottom - 10) is null
+FAIL bounds = video_element.getBoundingClientRect(); document.caretRangeFromPoint(bounds.left + 10, bounds.bottom - 10) should be null. Was .
 PASS successfullyParsed is true
+Some tests failed.
 
 TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1257595</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-12-07 21:16:09 -0800</bug_when>
    <thetext>Started with https://trac.webkit.org/changeset/209490</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1257633</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-12-07 22:56:55 -0800</bug_when>
    <thetext>Just noticed iOS EWS falling behind others because of this test failing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1257635</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2016-12-07 23:18:50 -0800</bug_when>
    <thetext>Ugh… we need to do more tweaking on this test :(

Brent, what do you think about just deleting these tests?  These tests aren’t doing anything useful after r209486.

Alternatively we can just use internals.shadowRoot to get the shadow root directly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1257657</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2016-12-08 00:05:06 -0800</bug_when>
    <thetext>It looks like this test wasn’t working even prior to my patch. The reason test is failing appears to stems from the video element being implemented differently on iOS and Mac.

I really think the best approach here is to delete the test but I’d revert my change and the check conditional for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1257658</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2016-12-08 00:11:04 -0800</bug_when>
    <thetext>I fixed the test in https://trac.webkit.org/changeset/209529 for now but we should really just remove these tests.

e.g. if we make this test use internals.shadowRoot, then it’s gonna hit the assertion in RenderImage.cpp we just added in https://trac.webkit.org/changeset/209431/trunk/Source/WebCore/rendering/RenderImage.cpp

And this assertion is valid. Nobody should be inserting more than one mode as a direct child inside a media element’s shadow tree.  So I don’t know how we’d make this test work without hitting any assertion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1257700</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-12-08 08:18:22 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; I fixed the test in https://trac.webkit.org/changeset/209529 for now but we
&gt; should really just remove these tests.
&gt; 
&gt; e.g. if we make this test use internals.shadowRoot, then it’s gonna hit the
&gt; assertion in RenderImage.cpp we just added in
&gt; https://trac.webkit.org/changeset/209431/trunk/Source/WebCore/rendering/
&gt; RenderImage.cpp
&gt; 
&gt; And this assertion is valid. Nobody should be inserting more than one mode
&gt; as a direct child inside a media element’s shadow tree.  So I don’t know how
&gt; we’d make this test work without hitting any assertion.

I&apos;m fine with removing the test now that you&apos;ve fixed the underlying issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>