<?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>162645</bug_id>
          
          <creation_ts>2016-09-27 16:49:33 -0700</creation_ts>
          <short_desc>[ios-simulator] LayoutTest imported/w3c/web-platform-tests/shadow-dom/scroll-to-the-fragment-in-shadow-tree.html failing</short_desc>
          <delta_ts>2016-12-19 20:38:34 -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>iOS 10</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=162629</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>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1234133</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-09-27 16:49:33 -0700</bug_when>
    <thetext>LayoutTest imported/w3c/web-platform-tests/shadow-dom/scroll-to-the-fragment-in-shadow-tree.html failing

This test was imported with http://trac.webkit.org/changeset/206463 and is failing on ios-simulator

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

http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=imported%2Fw3c%2Fweb-platform-tests%2Fshadow-dom%2Fscroll-to-the-fragment-in-shadow-tree.html

--- /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/shadow-dom/scroll-to-the-fragment-in-shadow-tree-expected.txt
+++ /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/shadow-dom/scroll-to-the-fragment-in-shadow-tree-actual.txt
@@ -1,12 +1,14 @@
 
 PASS The user agent scroll to the fragment when there is an element with an ID exactly equal to the decoded fragid 
-PASS The user agent scroll to the fragment when there is an anchor element with a name attribute exactly equal to the decoded fragid 
-PASS The user agent should not scroll to an element with an ID exactly equal to the decoded fragid in an open shadow tree 
+FAIL The user agent scroll to the fragment when there is an anchor element with a name attribute exactly equal to the decoded fragid assert_not_equals: got disallowed value 0
+FAIL The user agent should not scroll to an element with an ID exactly equal to the decoded fragid in an open shadow tree assert_equals: expected 0 but got 636
 PASS The user agent should not scroll to an element with an ID exactly equal to the decoded fragid in a closed shadow tree 
 PASS The user agent should not scroll to an anchor element with a name attribute exactly equal to the decoded fragid in an open shadow tree 
 PASS The user agent should not scroll to an anchor element with a name attribute exactly equal to the decoded fragid in a closed shadow tree 
 PASS The user agent should scroll to an element with an ID exactly equal to the decoded fragid in the document tree even if there was another element with the same ID inside an open shadow tree earlier in tree order 
 PASS The user agent should scroll to an element with an ID exactly equal to the decoded fragid in the document tree even if there was another element with the same ID inside a closed shadow tree earlier in tree order 
 PASS The user agent should scroll to an anchor element with a name attribute exactly equal to the decoded fragid in the document tree even if there was another element with the same ID inside an open shadow tree earlier in tree order 
-PASS The user agent should scroll to an anchor element with a name attribute exactly equal to the decoded fragid in the document tree even if there was another element with the same ID inside a closed shadow tree earlier in tree order 
-
+FAIL The user agent should scroll to an anchor element with a name attribute exactly equal to the decoded fragid in the document tree even if there was another element with the same ID inside a closed shadow tree earlier in tree order assert_equals: expected 0 but got 1856
+Go to fragment
+Go to fragment
+hello</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234149</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-09-27 17:17:51 -0700</bug_when>
    <thetext>Marked test as failing in http://trac.webkit.org/projects/webkit/changeset/206473</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1251495</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-11-15 11:17:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/29271819&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1261309</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2016-12-19 20:04:31 -0800</bug_when>
    <thetext>It looks like we need to wait more than 0ms on iOS for the page to scroll.

According to the latest HTML spec, scrolling should be happening in the next task so there appears to be a bug here:

a element: https://html.spec.whatwg.org/#the-a-element
follow a hyperlink: https://html.spec.whatwg.org/#following-hyperlinks-2
navigate: https://html.spec.whatwg.org/#navigate
navigate to a frament: https://html.spec.whatwg.org/#scroll-to-fragid</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1261311</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-12-19 20:12:26 -0800</bug_when>
    <thetext>Scrolling is an async round-trip to the UI process, so that&apos;s not surprising.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1261316</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2016-12-19 20:38:34 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; Scrolling is an async round-trip to the UI process, so that&apos;s not surprising.

If we can’t fix it in WebKit, we should probably have the spec changed so that it’s fully async.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>