<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - scroll-restoration-navigation-samedoc.html does cross-origin navigation in an incompatible way"
   href="https://bugs.webkit.org/show_bug.cgi?id=169264">169264</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>scroll-restoration-navigation-samedoc.html does cross-origin navigation in an incompatible way
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Local Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Tools / Tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>simon.fraser&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lforschler&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This test needs to be fixed to use get_host_info().HTTP_REMOTE_ORIGIN, like:

diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-cross-origin.html b/LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-cross-origin.html
index e3da59e39003e394f8ff165072a12385a711b331..23fbd50507d79768a85aa284f8e55315868886ea 100644
--- a/LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-cross-origin.html
+++ b/LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-cross-origin.html
&#64;&#64; -14,9 +14,13 &#64;&#64;

 &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
 &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/common/get-host-info.sub.js&quot;&gt;&lt;/script&gt;
 &lt;script type=&quot;text/javascript&quot;&gt;
   'use strict';

+function base_path() {
+    return location.pathname.replace(/\/[^\/]*$/, '/');
+}
   // The test does the following navigation steps for iframe
   // 1. load page-with-fragment.html#fragment
   // 2. load blank1
&#64;&#64; -40,7 +44,8 &#64;&#64;
         });
       }, function() {
         // navigate to a new page from a different origin
-        iframe.src = iframe.src.replace(&quot;http://&quot;, &quot;<a href="http://www">http://www</a>.&quot;).replace(&quot;page-with-fragment.html#fragment&quot;, &quot;blank1.html&quot;);
+        // iframe.src = iframe.src.replace(&quot;http://&quot;, &quot;<a href="http://www">http://www</a>.&quot;).replace(&quot;page-with-fragment.html#fragment&quot;, &quot;blank1.html&quot;);
+        iframe.src = get_host_info().HTTP_REMOTE_ORIGIN + base_path() + &quot;resources/blank1.html&quot;;
       }, function() {
         // going back causes the iframe to traverse back
         history.back();</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>