From fbed4d23d67508c08fb177b88fd7458bcd046a55 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 19 Dec 2016 19:33:07 +0100 Subject: [PATCH] Ensure that the API base URL is used in Fetch APIs. --- .../fetch/api/request/multi-globals/url-parsing.html.ini | 5 +++++ .../fetch/api/response/multi-globals/url-parsing.html.ini | 5 +++++ .../fetch/api/request/multi-globals/current/current.html | 1 + .../fetch/api/request/multi-globals/url-parsing.html | 2 +- .../fetch/api/response/multi-globals/current/current.html | 1 + .../fetch/api/response/multi-globals/url-parsing.html | 2 +- 6 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 tests/wpt/metadata/fetch/api/request/multi-globals/url-parsing.html.ini create mode 100644 tests/wpt/metadata/fetch/api/response/multi-globals/url-parsing.html.ini diff --git a/tests/wpt/metadata/fetch/api/request/multi-globals/url-parsing.html.ini b/tests/wpt/metadata/fetch/api/request/multi-globals/url-parsing.html.ini new file mode 100644 index 00000000000..a6e5c4f239b --- /dev/null +++ b/tests/wpt/metadata/fetch/api/request/multi-globals/url-parsing.html.ini @@ -0,0 +1,5 @@ +[url-parsing.html] + type: testharness + [should parse the URL relative to the current settings object] + expected: FAIL + diff --git a/tests/wpt/metadata/fetch/api/response/multi-globals/url-parsing.html.ini b/tests/wpt/metadata/fetch/api/response/multi-globals/url-parsing.html.ini new file mode 100644 index 00000000000..ebf5ccc16d2 --- /dev/null +++ b/tests/wpt/metadata/fetch/api/response/multi-globals/url-parsing.html.ini @@ -0,0 +1,5 @@ +[url-parsing.html] + type: testharness + [should parse the redirect Location URL relative to the current settings object] + expected: FAIL + diff --git a/tests/wpt/web-platform-tests/fetch/api/request/multi-globals/current/current.html b/tests/wpt/web-platform-tests/fetch/api/request/multi-globals/current/current.html index 82a48d40990..9bb6e0bbf3f 100644 --- a/tests/wpt/web-platform-tests/fetch/api/request/multi-globals/current/current.html +++ b/tests/wpt/web-platform-tests/fetch/api/request/multi-globals/current/current.html @@ -1,2 +1,3 @@ Current page used as a test helper + diff --git a/tests/wpt/web-platform-tests/fetch/api/request/multi-globals/url-parsing.html b/tests/wpt/web-platform-tests/fetch/api/request/multi-globals/url-parsing.html index c4ac7ce7f50..df60e72507f 100644 --- a/tests/wpt/web-platform-tests/fetch/api/request/multi-globals/url-parsing.html +++ b/tests/wpt/web-platform-tests/fetch/api/request/multi-globals/url-parsing.html @@ -20,7 +20,7 @@ promise_test(() => { return loadPromise.then(() => { const req = document.querySelector('iframe').contentWindow.createRequest("url"); - assert_equals(req.url, new URL("current/url", location.href).href); + assert_equals(req.url, new URL("current/success/url", location.href).href); }); }, "should parse the URL relative to the current settings object"); diff --git a/tests/wpt/web-platform-tests/fetch/api/response/multi-globals/current/current.html b/tests/wpt/web-platform-tests/fetch/api/response/multi-globals/current/current.html index 82a48d40990..9bb6e0bbf3f 100644 --- a/tests/wpt/web-platform-tests/fetch/api/response/multi-globals/current/current.html +++ b/tests/wpt/web-platform-tests/fetch/api/response/multi-globals/current/current.html @@ -1,2 +1,3 @@ Current page used as a test helper + diff --git a/tests/wpt/web-platform-tests/fetch/api/response/multi-globals/url-parsing.html b/tests/wpt/web-platform-tests/fetch/api/response/multi-globals/url-parsing.html index f810375e4e3..5f2f42a1cea 100644 --- a/tests/wpt/web-platform-tests/fetch/api/response/multi-globals/url-parsing.html +++ b/tests/wpt/web-platform-tests/fetch/api/response/multi-globals/url-parsing.html @@ -20,7 +20,7 @@ promise_test(() => { return loadPromise.then(() => { const res = document.querySelector('iframe').contentWindow.createRedirectResponse("url"); - assert_equals(res.headers.get("Location"), new URL("current/url", location.href).href); + assert_equals(res.headers.get("Location"), new URL("current/success/url", location.href).href); }); }, "should parse the redirect Location URL relative to the current settings object");