<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@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>simon.fraser@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>lforschler@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
@@ -14,9 +14,13 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
+<script src="/common/get-host-info.sub.js"></script>
<script type="text/javascript">
'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
@@ -40,7 +44,8 @@
});
}, function() {
// navigate to a new page from a different origin
- iframe.src = iframe.src.replace("http://", "<a href="http://www">http://www</a>.").replace("page-with-fragment.html#fragment", "blank1.html");
+ // iframe.src = iframe.src.replace("http://", "<a href="http://www">http://www</a>.").replace("page-with-fragment.html#fragment", "blank1.html");
+ iframe.src = get_host_info().HTTP_REMOTE_ORIGIN + base_path() + "resources/blank1.html";
}, 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>