[Webkit-unassigned] [Bug 169264] New: scroll-restoration-navigation-samedoc.html does cross-origin navigation in an incompatible way
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 6 22:07:43 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=169264
Bug ID: 169264
Summary: scroll-restoration-navigation-samedoc.html does
cross-origin navigation in an incompatible way
Classification: Unclassified
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: simon.fraser at apple.com
CC: lforschler at apple.com
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://", "http://www.").replace("page-with-fragment.html#fragment", "blank1.html");
+ // iframe.src = iframe.src.replace("http://", "http://www.").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();
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170307/3d5d8ab8/attachment.html>
More information about the webkit-unassigned
mailing list