diff --git a/cors/README.md b/cors/README.md index b239462625f667..aa5ff90d486e8b 100644 --- a/cors/README.md +++ b/cors/README.md @@ -5,4 +5,4 @@ These tests are located here as originally the CORS protocol was defined on its More CORS tests can be found in * /fetch -* /XMLHttpRequest +* /xhr diff --git a/fetch/README.md b/fetch/README.md index 3c5905690c1942..dcaad0219d5a53 100644 --- a/fetch/README.md +++ b/fetch/README.md @@ -3,4 +3,4 @@ Tests for the [Fetch Standard](https://fetch.spec.whatwg.org/). More Fetch tests can be found in * /cors -* /XMLHttpRequest +* /xhr diff --git a/fetch/api/basic/request-headers-case.any.js b/fetch/api/basic/request-headers-case.any.js index 549744fb05be83..067eabb13329b1 100644 --- a/fetch/api/basic/request-headers-case.any.js +++ b/fetch/api/basic/request-headers-case.any.js @@ -1,11 +1,11 @@ promise_test(() => { - return fetch("/XMLHttpRequest/resources/echo-headers.py", {headers: [["THIS-is-A-test", 1], ["THIS-IS-A-TEST", 2]] }).then(res => res.text()).then(body => { + return fetch("/xhr/resources/echo-headers.py", {headers: [["THIS-is-A-test", 1], ["THIS-IS-A-TEST", 2]] }).then(res => res.text()).then(body => { assert_regexp_match(body, /THIS-is-A-test: 1, 2/) }) }, "Multiple headers with the same name, different case (THIS-is-A-test first)") promise_test(() => { - return fetch("/XMLHttpRequest/resources/echo-headers.py", {headers: [["THIS-IS-A-TEST", 1], ["THIS-is-A-test", 2]] }).then(res => res.text()).then(body => { + return fetch("/xhr/resources/echo-headers.py", {headers: [["THIS-IS-A-TEST", 1], ["THIS-is-A-test", 2]] }).then(res => res.text()).then(body => { assert_regexp_match(body, /THIS-IS-A-TEST: 1, 2/) }) }, "Multiple headers with the same name, different case (THIS-IS-A-TEST first)") diff --git a/fetch/api/response/response-trailer.html b/fetch/api/response/response-trailer.html index 5454040a35632e..cbea155d4dd845 100644 --- a/fetch/api/response/response-trailer.html +++ b/fetch/api/response/response-trailer.html @@ -3,10 +3,10 @@
- + diff --git a/XMLHttpRequest/access-control-and-redirects-async.htm b/xhr/access-control-and-redirects-async.htm similarity index 85% rename from XMLHttpRequest/access-control-and-redirects-async.htm rename to xhr/access-control-and-redirects-async.htm index bf16c3c8a1cf1c..a77846f4f5f05c 100644 --- a/XMLHttpRequest/access-control-and-redirects-async.htm +++ b/xhr/access-control-and-redirects-async.htm @@ -11,7 +11,7 @@ function runTest(test, destination, parameters, customHeader, local, expectSuccess) { const xhr = new XMLHttpRequest(); const url = (local ? get_host_info().HTTP_ORIGIN : get_host_info().HTTP_REMOTE_ORIGIN) + - "/XMLHttpRequest/resources/redirect-cors.py?location=" + destination + "&" + parameters; + "/xhr/resources/redirect-cors.py?location=" + destination + "&" + parameters; xhr.open("GET", url, true); @@ -41,21 +41,21 @@ // The redirect response fails the access check because the redirect lacks a CORS header. async_test(t => { runTest(t, get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow-star.py", "", + "/xhr/resources/access-control-basic-allow-star.py", "", withoutCustomHeader, remote, fails) }, "Request is redirected without CORS headers to a response with Access-Control-Allow-Origin=*"); // The redirect response passes the access check. async_test(t => { runTest(t, get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow-star.py", "allow_origin=true", + "/xhr/resources/access-control-basic-allow-star.py", "allow_origin=true", withoutCustomHeader, remote, succeeds) }, "Request is redirected to a response with Access-Control-Allow-Origin=*"); // The redirect response fails the access check because user info was sent. async_test(t => { runTest(t, get_host_info().HTTP_REMOTE_ORIGIN.replace("http://", "http://username:password@") + - "/XMLHttpRequest/resources/access-control-basic-allow-star.py", "allow_origin=true", + "/xhr/resources/access-control-basic-allow-star.py", "allow_origin=true", withoutCustomHeader, remote, fails) }, "Request with user info is redirected to a response with Access-Control-Allow-Origin=*"); @@ -67,21 +67,21 @@ // The preflighted redirect response fails the access check because of preflighting. async_test(t => { runTest(t, get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow-star.py", + "/xhr/resources/access-control-basic-allow-star.py", "allow_origin=true&redirect_preflight=true", withCustomHeader, remote, fails) }, "Preflighted request is redirected to a response with Access-Control-Allow-Origin=*"); // The preflighted redirect response fails the access check after successful preflighting. async_test(t => { runTest(t, get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow-star.py", + "/xhr/resources/access-control-basic-allow-star.py", "allow_origin=true&allow_header=x-test&redirect_preflight=true", withCustomHeader, remote, fails) }, "Preflighted request is redirected to a response with Access-Control-Allow-Origin=* and header allowed"); // The same-origin redirect response passes the access check. async_test(t => { - runTest(t, get_host_info().HTTP_ORIGIN + "/XMLHttpRequest/resources/pass.txt", + runTest(t, get_host_info().HTTP_ORIGIN + "/xhr/resources/pass.txt", "", withCustomHeader, local, succeeds) }, "Request is redirected to a same-origin resource file"); diff --git a/XMLHttpRequest/access-control-and-redirects.htm b/xhr/access-control-and-redirects.htm similarity index 66% rename from XMLHttpRequest/access-control-and-redirects.htm rename to xhr/access-control-and-redirects.htm index dcdf40044cbd5f..a10bc1f5446355 100644 --- a/XMLHttpRequest/access-control-and-redirects.htm +++ b/xhr/access-control-and-redirects.htm @@ -29,31 +29,31 @@ } test(t => { runSync(t, "resources/redirect-cors.py?location=" + get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow.py") + "/xhr/resources/access-control-basic-allow.py") }, "Local sync redirect to remote origin"); async_test(t => { runAsync(t, "resources/redirect-cors.py?location=" + get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow.py") + "/xhr/resources/access-control-basic-allow.py") }, "Local async redirect to remote origin"); test(t => { runSync(t, get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/redirect-cors.py?location=" + get_host_info().HTTP_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow.py&allow_origin=true") + "/xhr/resources/redirect-cors.py?location=" + get_host_info().HTTP_ORIGIN + + "/xhr/resources/access-control-basic-allow.py&allow_origin=true") }, "Remote sync redirect to local origin"); async_test(t => { runAsync(t, get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/redirect-cors.py?location=" + get_host_info().HTTP_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow.py&allow_origin=true") + "/xhr/resources/redirect-cors.py?location=" + get_host_info().HTTP_ORIGIN + + "/xhr/resources/access-control-basic-allow.py&allow_origin=true") }, "Remote async redirect to local origin"); test(t => { runSync(t, get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/redirect-cors.py?location=" + get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow.py&allow_origin=true") + "/xhr/resources/redirect-cors.py?location=" + get_host_info().HTTP_REMOTE_ORIGIN + + "/xhr/resources/access-control-basic-allow.py&allow_origin=true") }, "Remote sync redirect to same remote origin"); async_test(t => { runAsync(t, get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/redirect-cors.py?location=" + get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-allow.py&allow_origin=true") + "/xhr/resources/redirect-cors.py?location=" + get_host_info().HTTP_REMOTE_ORIGIN + + "/xhr/resources/access-control-basic-allow.py&allow_origin=true") }, "Remote async redirect to same remote origin"); diff --git a/XMLHttpRequest/access-control-basic-allow-access-control-origin-header-data-url.htm b/xhr/access-control-basic-allow-access-control-origin-header-data-url.htm similarity index 91% rename from XMLHttpRequest/access-control-basic-allow-access-control-origin-header-data-url.htm rename to xhr/access-control-basic-allow-access-control-origin-header-data-url.htm index d73f56b017b259..0d66ad787afbbf 100644 --- a/XMLHttpRequest/access-control-basic-allow-access-control-origin-header-data-url.htm +++ b/xhr/access-control-basic-allow-access-control-origin-header-data-url.htm @@ -8,7 +8,7 @@ diff --git a/XMLHttpRequest/access-control-basic-allow-non-cors-safelisted-method-async.htm b/xhr/access-control-basic-allow-non-cors-safelisted-method-async.htm similarity index 92% rename from XMLHttpRequest/access-control-basic-allow-non-cors-safelisted-method-async.htm rename to xhr/access-control-basic-allow-non-cors-safelisted-method-async.htm index 57721aa684b9a8..e468c82ccab15e 100644 --- a/XMLHttpRequest/access-control-basic-allow-non-cors-safelisted-method-async.htm +++ b/xhr/access-control-basic-allow-non-cors-safelisted-method-async.htm @@ -18,7 +18,7 @@ xhr.onerror = test.unreached_func("Unexpected error."); xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-put-allow.py"); + "/xhr/resources/access-control-basic-put-allow.py"); xhr.setRequestHeader("Content-Type", "text/plain; charset=UTF-8"); xhr.send("PASS: PUT data received"); }, "Allow async PUT request"); diff --git a/XMLHttpRequest/access-control-basic-allow-non-cors-safelisted-method.htm b/xhr/access-control-basic-allow-non-cors-safelisted-method.htm similarity index 83% rename from XMLHttpRequest/access-control-basic-allow-non-cors-safelisted-method.htm rename to xhr/access-control-basic-allow-non-cors-safelisted-method.htm index 08f41117f87935..2612265173eee1 100644 --- a/XMLHttpRequest/access-control-basic-allow-non-cors-safelisted-method.htm +++ b/xhr/access-control-basic-allow-non-cors-safelisted-method.htm @@ -11,7 +11,7 @@ test(function() { const xhr = new XMLHttpRequest; - xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-put-allow.py", false); + xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-put-allow.py", false); xhr.setRequestHeader("Content-Type", "text/plain; charset=UTF-8"); diff --git a/XMLHttpRequest/access-control-basic-allow-preflight-cache-invalidation-by-header.htm b/xhr/access-control-basic-allow-preflight-cache-invalidation-by-header.htm similarity index 75% rename from XMLHttpRequest/access-control-basic-allow-preflight-cache-invalidation-by-header.htm rename to xhr/access-control-basic-allow-preflight-cache-invalidation-by-header.htm index 5a1e396e52f18d..306eb02b3eb55e 100644 --- a/XMLHttpRequest/access-control-basic-allow-preflight-cache-invalidation-by-header.htm +++ b/xhr/access-control-basic-allow-preflight-cache-invalidation-by-header.htm @@ -20,7 +20,7 @@ firstRequest(); }); - xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/reset-token.py?token=" + uuid, true); + xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/reset-token.py?token=" + uuid, true); xhr.send(); function firstRequest() { @@ -28,7 +28,7 @@ assert_equals(xhr.responseText, "PASS: First PUT request."); secondRequest(); }); - xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-preflight-cache-invalidation.py?token=" + uuid, true); + xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-preflight-cache-invalidation.py?token=" + uuid, true); xhr.send(); } @@ -38,7 +38,7 @@ test.done(); }); // Send a header not included in the inital cache. - xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-preflight-cache-invalidation.py?token=" + uuid, true); + xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-preflight-cache-invalidation.py?token=" + uuid, true); xhr.setRequestHeader("x-test", "headerValue"); xhr.send(); } diff --git a/XMLHttpRequest/access-control-basic-allow-preflight-cache-invalidation-by-method.htm b/xhr/access-control-basic-allow-preflight-cache-invalidation-by-method.htm similarity index 78% rename from XMLHttpRequest/access-control-basic-allow-preflight-cache-invalidation-by-method.htm rename to xhr/access-control-basic-allow-preflight-cache-invalidation-by-method.htm index 058943e839d22d..f8a99a25560c41 100644 --- a/XMLHttpRequest/access-control-basic-allow-preflight-cache-invalidation-by-method.htm +++ b/xhr/access-control-basic-allow-preflight-cache-invalidation-by-method.htm @@ -20,7 +20,7 @@ firstRequest(); }); - xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/reset-token.py?token=" + uuid, true); + xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/reset-token.py?token=" + uuid, true); xhr.send(); function firstRequest() { @@ -28,7 +28,7 @@ assert_equals(xhr.responseText, "PASS: First PUT request."); secondRequest(); }); - xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-preflight-cache-invalidation.py?token=" + uuid, true); + xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-preflight-cache-invalidation.py?token=" + uuid, true); xhr.send(); } @@ -38,7 +38,7 @@ test.done(); }); // Send a header not included in the inital cache. - xhr.open("XMETHOD", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-preflight-cache-invalidation.py?token=" + uuid, true); + xhr.open("XMETHOD", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-preflight-cache-invalidation.py?token=" + uuid, true); xhr.send(); } }, "Preflight cache should be invalidated by changed method"); diff --git a/XMLHttpRequest/access-control-basic-allow-preflight-cache-timeout.htm b/xhr/access-control-basic-allow-preflight-cache-timeout.htm similarity index 74% rename from XMLHttpRequest/access-control-basic-allow-preflight-cache-timeout.htm rename to xhr/access-control-basic-allow-preflight-cache-timeout.htm index 56702c01d0e886..ccd961f210834a 100644 --- a/XMLHttpRequest/access-control-basic-allow-preflight-cache-timeout.htm +++ b/xhr/access-control-basic-allow-preflight-cache-timeout.htm @@ -20,7 +20,7 @@ firstRequest(); }); - xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/reset-token.py?token=" + uuid, true); + xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/reset-token.py?token=" + uuid, true); xhr.send(); function firstRequest() { @@ -28,7 +28,7 @@ assert_equals(xhr.responseText, "PASS: First PUT request."); step_timeout(secondRequest, 3000); // 3 seconds }); - xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-preflight-cache-timeout.py?token=" + uuid, true); + xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-preflight-cache-timeout.py?token=" + uuid, true); xhr.send(); } @@ -37,7 +37,7 @@ assert_equals(xhr.responseText, "PASS: Second OPTIONS request was sent."); test.done(); }); - xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-preflight-cache-timeout.py?token=" + uuid, true); + xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-preflight-cache-timeout.py?token=" + uuid, true); xhr.send(); } }, "Preflight cache should be invalidated on timeout"); diff --git a/XMLHttpRequest/access-control-basic-allow-preflight-cache.htm b/xhr/access-control-basic-allow-preflight-cache.htm similarity index 75% rename from XMLHttpRequest/access-control-basic-allow-preflight-cache.htm rename to xhr/access-control-basic-allow-preflight-cache.htm index ad38a6bdb1d9a7..b8deda4349e080 100644 --- a/XMLHttpRequest/access-control-basic-allow-preflight-cache.htm +++ b/xhr/access-control-basic-allow-preflight-cache.htm @@ -20,7 +20,7 @@ firstRequest(); }); - xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/reset-token.py?token=" + uuid, true); + xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/reset-token.py?token=" + uuid, true); xhr.send(); function firstRequest() { @@ -28,7 +28,7 @@ assert_equals(xhr.responseText, "PASS: First PUT request."); secondRequest(); }); - xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-preflight-cache.py?token=" + uuid, true); + xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-preflight-cache.py?token=" + uuid, true); xhr.send(); } @@ -36,7 +36,7 @@ xhr.onload = test.step_func_done(function() { assert_equals(xhr.responseText, "PASS: Second PUT request. Preflight worked."); }); - xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-preflight-cache.py?token=" + uuid, true); + xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-preflight-cache.py?token=" + uuid, true); xhr.send(); } }, "Preflight cache should allow second request"); diff --git a/XMLHttpRequest/access-control-basic-allow-star.htm b/xhr/access-control-basic-allow-star.htm similarity index 80% rename from XMLHttpRequest/access-control-basic-allow-star.htm rename to xhr/access-control-basic-allow-star.htm index fac25e297b5152..d05222f2002f22 100644 --- a/XMLHttpRequest/access-control-basic-allow-star.htm +++ b/xhr/access-control-basic-allow-star.htm @@ -11,7 +11,7 @@ const xhr = new XMLHttpRequest; test(function(test) { - xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-allow-star.py", false); + xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-allow-star.py", false); xhr.send(); diff --git a/XMLHttpRequest/access-control-basic-allow.htm b/xhr/access-control-basic-allow.htm similarity index 81% rename from XMLHttpRequest/access-control-basic-allow.htm rename to xhr/access-control-basic-allow.htm index f7e67babdf1ad5..61c02ed5428cc5 100644 --- a/XMLHttpRequest/access-control-basic-allow.htm +++ b/xhr/access-control-basic-allow.htm @@ -11,7 +11,7 @@ test(function() { const xhr = new XMLHttpRequest; - xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-allow.py", false); + xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-allow.py", false); xhr.send(); diff --git a/XMLHttpRequest/access-control-basic-cors-safelisted-request-headers.htm b/xhr/access-control-basic-cors-safelisted-request-headers.htm similarity index 86% rename from XMLHttpRequest/access-control-basic-cors-safelisted-request-headers.htm rename to xhr/access-control-basic-cors-safelisted-request-headers.htm index 1d570a3c93ee36..20b875b9bddc3c 100644 --- a/XMLHttpRequest/access-control-basic-cors-safelisted-request-headers.htm +++ b/xhr/access-control-basic-cors-safelisted-request-headers.htm @@ -11,7 +11,7 @@ test(function() { const xhr = new XMLHttpRequest; - xhr.open("POST", get_host_info().HTTP_REMOTE_ORIGIN + "/XMLHttpRequest/resources/access-control-basic-cors-safelisted-request-headers.py", false); + xhr.open("POST", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-cors-safelisted-request-headers.py", false); xhr.setRequestHeader("Accept", "*"); xhr.setRequestHeader("Accept-Language", "ru"); diff --git a/XMLHttpRequest/access-control-basic-cors-safelisted-response-headers.htm b/xhr/access-control-basic-cors-safelisted-response-headers.htm similarity index 92% rename from XMLHttpRequest/access-control-basic-cors-safelisted-response-headers.htm rename to xhr/access-control-basic-cors-safelisted-response-headers.htm index c795083ece9912..a5c470b74f51d6 100644 --- a/XMLHttpRequest/access-control-basic-cors-safelisted-response-headers.htm +++ b/xhr/access-control-basic-cors-safelisted-response-headers.htm @@ -12,7 +12,7 @@ const xhr = new XMLHttpRequest; xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + - "/XMLHttpRequest/resources/access-control-basic-whitelist-response-headers.py", false); + "/xhr/resources/access-control-basic-whitelist-response-headers.py", false); xhr.send(); assert_not_equals(xhr.getResponseHeader("cache-control"), null); diff --git a/XMLHttpRequest/access-control-basic-denied.htm b/xhr/access-control-basic-denied.htm similarity index 92% rename from XMLHttpRequest/access-control-basic-denied.htm rename to xhr/access-control-basic-denied.htm index 924bdd55a6990d..3bcd2517245f5d 100644 --- a/XMLHttpRequest/access-control-basic-denied.htm +++ b/xhr/access-control-basic-denied.htm @@ -8,7 +8,7 @@ diff --git a/XMLHttpRequest/access-control-preflight-async-header-denied.htm b/xhr/access-control-preflight-async-header-denied.htm similarity index 93% rename from XMLHttpRequest/access-control-preflight-async-header-denied.htm rename to xhr/access-control-preflight-async-header-denied.htm index 84a60eb6f635fc..a00cc588981c37 100644 --- a/XMLHttpRequest/access-control-preflight-async-header-denied.htm +++ b/xhr/access-control-preflight-async-header-denied.htm @@ -11,7 +11,7 @@ - diff --git a/XMLHttpRequest/access-control-sandboxed-iframe-allow.htm b/xhr/access-control-sandboxed-iframe-allow.htm similarity index 85% rename from XMLHttpRequest/access-control-sandboxed-iframe-allow.htm rename to xhr/access-control-sandboxed-iframe-allow.htm index 21413f3866399b..a3dbed420feaf6 100644 --- a/XMLHttpRequest/access-control-sandboxed-iframe-allow.htm +++ b/xhr/access-control-sandboxed-iframe-allow.htm @@ -13,7 +13,7 @@ if (evt.data === "ready") { document.getElementById("frame").contentWindow.postMessage( get_host_info().HTTP_ORIGIN + - "/XMLHttpRequest/resources/pass.txt?pipe=" + + "/xhr/resources/pass.txt?pipe=" + "header(Cache-Control,no-store)|" + "header(Content-Type,text/plain)|" + "header(Access-Control-Allow-Credentials,true)|" + @@ -26,7 +26,7 @@ }), false); }); - diff --git a/XMLHttpRequest/access-control-sandboxed-iframe-denied-without-wildcard.htm b/xhr/access-control-sandboxed-iframe-denied-without-wildcard.htm similarity index 89% rename from XMLHttpRequest/access-control-sandboxed-iframe-denied-without-wildcard.htm rename to xhr/access-control-sandboxed-iframe-denied-without-wildcard.htm index 7c375f606684b6..a703a922e27344 100644 --- a/XMLHttpRequest/access-control-sandboxed-iframe-denied-without-wildcard.htm +++ b/xhr/access-control-sandboxed-iframe-denied-without-wildcard.htm @@ -8,7 +8,7 @@ - diff --git a/XMLHttpRequest/access-control-sandboxed-iframe-denied.htm b/xhr/access-control-sandboxed-iframe-denied.htm similarity index 88% rename from XMLHttpRequest/access-control-sandboxed-iframe-denied.htm rename to xhr/access-control-sandboxed-iframe-denied.htm index a87dd7d1f25548..5b629917041f5f 100644 --- a/XMLHttpRequest/access-control-sandboxed-iframe-denied.htm +++ b/xhr/access-control-sandboxed-iframe-denied.htm @@ -8,7 +8,7 @@ - diff --git a/XMLHttpRequest/allow-lists-starting-with-comma.htm b/xhr/allow-lists-starting-with-comma.htm similarity index 84% rename from XMLHttpRequest/allow-lists-starting-with-comma.htm rename to xhr/allow-lists-starting-with-comma.htm index 4a4e5e2218c731..ece699bf5d75f1 100644 --- a/XMLHttpRequest/allow-lists-starting-with-comma.htm +++ b/xhr/allow-lists-starting-with-comma.htm @@ -10,7 +10,7 @@
diff --git a/XMLHttpRequest/open-url-javascript-window-2.htm b/xhr/open-url-javascript-window-2.htm similarity index 100% rename from XMLHttpRequest/open-url-javascript-window-2.htm rename to xhr/open-url-javascript-window-2.htm diff --git a/XMLHttpRequest/open-url-javascript-window.htm b/xhr/open-url-javascript-window.htm similarity index 100% rename from XMLHttpRequest/open-url-javascript-window.htm rename to xhr/open-url-javascript-window.htm diff --git a/XMLHttpRequest/open-url-multi-window-2.htm b/xhr/open-url-multi-window-2.htm similarity index 100% rename from XMLHttpRequest/open-url-multi-window-2.htm rename to xhr/open-url-multi-window-2.htm diff --git a/XMLHttpRequest/open-url-multi-window-3.htm b/xhr/open-url-multi-window-3.htm similarity index 100% rename from XMLHttpRequest/open-url-multi-window-3.htm rename to xhr/open-url-multi-window-3.htm diff --git a/XMLHttpRequest/open-url-multi-window-4.htm b/xhr/open-url-multi-window-4.htm similarity index 100% rename from XMLHttpRequest/open-url-multi-window-4.htm rename to xhr/open-url-multi-window-4.htm diff --git a/XMLHttpRequest/open-url-multi-window-5.htm b/xhr/open-url-multi-window-5.htm similarity index 100% rename from XMLHttpRequest/open-url-multi-window-5.htm rename to xhr/open-url-multi-window-5.htm diff --git a/XMLHttpRequest/open-url-multi-window-6.htm b/xhr/open-url-multi-window-6.htm similarity index 100% rename from XMLHttpRequest/open-url-multi-window-6.htm rename to xhr/open-url-multi-window-6.htm diff --git a/XMLHttpRequest/open-url-multi-window.htm b/xhr/open-url-multi-window.htm similarity index 100% rename from XMLHttpRequest/open-url-multi-window.htm rename to xhr/open-url-multi-window.htm diff --git a/XMLHttpRequest/open-url-redirected-worker-origin.htm b/xhr/open-url-redirected-worker-origin.htm similarity index 100% rename from XMLHttpRequest/open-url-redirected-worker-origin.htm rename to xhr/open-url-redirected-worker-origin.htm diff --git a/XMLHttpRequest/open-url-worker-origin.htm b/xhr/open-url-worker-origin.htm similarity index 100% rename from XMLHttpRequest/open-url-worker-origin.htm rename to xhr/open-url-worker-origin.htm diff --git a/XMLHttpRequest/open-url-worker-simple.htm b/xhr/open-url-worker-simple.htm similarity index 100% rename from XMLHttpRequest/open-url-worker-simple.htm rename to xhr/open-url-worker-simple.htm diff --git a/XMLHttpRequest/open-user-password-non-same-origin.htm b/xhr/open-user-password-non-same-origin.htm similarity index 100% rename from XMLHttpRequest/open-user-password-non-same-origin.htm rename to xhr/open-user-password-non-same-origin.htm diff --git a/XMLHttpRequest/overridemimetype-blob.html b/xhr/overridemimetype-blob.html similarity index 100% rename from XMLHttpRequest/overridemimetype-blob.html rename to xhr/overridemimetype-blob.html diff --git a/XMLHttpRequest/overridemimetype-done-state.htm b/xhr/overridemimetype-done-state.htm similarity index 100% rename from XMLHttpRequest/overridemimetype-done-state.htm rename to xhr/overridemimetype-done-state.htm diff --git a/XMLHttpRequest/overridemimetype-headers-received-state-force-shiftjis.htm b/xhr/overridemimetype-headers-received-state-force-shiftjis.htm similarity index 100% rename from XMLHttpRequest/overridemimetype-headers-received-state-force-shiftjis.htm rename to xhr/overridemimetype-headers-received-state-force-shiftjis.htm diff --git a/XMLHttpRequest/overridemimetype-invalid-mime-type.htm b/xhr/overridemimetype-invalid-mime-type.htm similarity index 100% rename from XMLHttpRequest/overridemimetype-invalid-mime-type.htm rename to xhr/overridemimetype-invalid-mime-type.htm diff --git a/XMLHttpRequest/overridemimetype-loading-state.htm b/xhr/overridemimetype-loading-state.htm similarity index 100% rename from XMLHttpRequest/overridemimetype-loading-state.htm rename to xhr/overridemimetype-loading-state.htm diff --git a/XMLHttpRequest/overridemimetype-open-state-force-utf-8.htm b/xhr/overridemimetype-open-state-force-utf-8.htm similarity index 100% rename from XMLHttpRequest/overridemimetype-open-state-force-utf-8.htm rename to xhr/overridemimetype-open-state-force-utf-8.htm diff --git a/XMLHttpRequest/overridemimetype-open-state-force-xml.htm b/xhr/overridemimetype-open-state-force-xml.htm similarity index 100% rename from XMLHttpRequest/overridemimetype-open-state-force-xml.htm rename to xhr/overridemimetype-open-state-force-xml.htm diff --git a/XMLHttpRequest/overridemimetype-unsent-state-force-shiftjis.htm b/xhr/overridemimetype-unsent-state-force-shiftjis.htm similarity index 100% rename from XMLHttpRequest/overridemimetype-unsent-state-force-shiftjis.htm rename to xhr/overridemimetype-unsent-state-force-shiftjis.htm diff --git a/XMLHttpRequest/preserve-ua-header-on-redirect.htm b/xhr/preserve-ua-header-on-redirect.htm similarity index 100% rename from XMLHttpRequest/preserve-ua-header-on-redirect.htm rename to xhr/preserve-ua-header-on-redirect.htm diff --git a/XMLHttpRequest/progress-events-response-data-gzip.htm b/xhr/progress-events-response-data-gzip.htm similarity index 100% rename from XMLHttpRequest/progress-events-response-data-gzip.htm rename to xhr/progress-events-response-data-gzip.htm diff --git a/XMLHttpRequest/progressevent-constructor.html b/xhr/progressevent-constructor.html similarity index 100% rename from XMLHttpRequest/progressevent-constructor.html rename to xhr/progressevent-constructor.html diff --git a/XMLHttpRequest/progressevent-interface.html b/xhr/progressevent-interface.html similarity index 100% rename from XMLHttpRequest/progressevent-interface.html rename to xhr/progressevent-interface.html diff --git a/XMLHttpRequest/resources/accept-language.py b/xhr/resources/accept-language.py similarity index 100% rename from XMLHttpRequest/resources/accept-language.py rename to xhr/resources/accept-language.py diff --git a/XMLHttpRequest/resources/accept.py b/xhr/resources/accept.py similarity index 100% rename from XMLHttpRequest/resources/accept.py rename to xhr/resources/accept.py diff --git a/XMLHttpRequest/resources/access-control-allow-lists.py b/xhr/resources/access-control-allow-lists.py similarity index 100% rename from XMLHttpRequest/resources/access-control-allow-lists.py rename to xhr/resources/access-control-allow-lists.py diff --git a/XMLHttpRequest/resources/access-control-allow-with-body.py b/xhr/resources/access-control-allow-with-body.py similarity index 100% rename from XMLHttpRequest/resources/access-control-allow-with-body.py rename to xhr/resources/access-control-allow-with-body.py diff --git a/XMLHttpRequest/resources/access-control-auth-basic.py b/xhr/resources/access-control-auth-basic.py similarity index 100% rename from XMLHttpRequest/resources/access-control-auth-basic.py rename to xhr/resources/access-control-auth-basic.py diff --git a/XMLHttpRequest/resources/access-control-basic-allow-no-credentials.py b/xhr/resources/access-control-basic-allow-no-credentials.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-allow-no-credentials.py rename to xhr/resources/access-control-basic-allow-no-credentials.py diff --git a/XMLHttpRequest/resources/access-control-basic-allow-star.py b/xhr/resources/access-control-basic-allow-star.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-allow-star.py rename to xhr/resources/access-control-basic-allow-star.py diff --git a/XMLHttpRequest/resources/access-control-basic-allow.py b/xhr/resources/access-control-basic-allow.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-allow.py rename to xhr/resources/access-control-basic-allow.py diff --git a/XMLHttpRequest/resources/access-control-basic-cors-safelisted-request-headers.py b/xhr/resources/access-control-basic-cors-safelisted-request-headers.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-cors-safelisted-request-headers.py rename to xhr/resources/access-control-basic-cors-safelisted-request-headers.py diff --git a/XMLHttpRequest/resources/access-control-basic-denied.py b/xhr/resources/access-control-basic-denied.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-denied.py rename to xhr/resources/access-control-basic-denied.py diff --git a/XMLHttpRequest/resources/access-control-basic-options-not-supported.py b/xhr/resources/access-control-basic-options-not-supported.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-options-not-supported.py rename to xhr/resources/access-control-basic-options-not-supported.py diff --git a/XMLHttpRequest/resources/access-control-basic-preflight-cache-invalidation.py b/xhr/resources/access-control-basic-preflight-cache-invalidation.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-preflight-cache-invalidation.py rename to xhr/resources/access-control-basic-preflight-cache-invalidation.py diff --git a/XMLHttpRequest/resources/access-control-basic-preflight-cache-timeout.py b/xhr/resources/access-control-basic-preflight-cache-timeout.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-preflight-cache-timeout.py rename to xhr/resources/access-control-basic-preflight-cache-timeout.py diff --git a/XMLHttpRequest/resources/access-control-basic-preflight-cache.py b/xhr/resources/access-control-basic-preflight-cache.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-preflight-cache.py rename to xhr/resources/access-control-basic-preflight-cache.py diff --git a/XMLHttpRequest/resources/access-control-basic-put-allow.py b/xhr/resources/access-control-basic-put-allow.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-put-allow.py rename to xhr/resources/access-control-basic-put-allow.py diff --git a/XMLHttpRequest/resources/access-control-basic-whitelist-response-headers.py b/xhr/resources/access-control-basic-whitelist-response-headers.py similarity index 100% rename from XMLHttpRequest/resources/access-control-basic-whitelist-response-headers.py rename to xhr/resources/access-control-basic-whitelist-response-headers.py diff --git a/XMLHttpRequest/resources/access-control-cookie.py b/xhr/resources/access-control-cookie.py similarity index 100% rename from XMLHttpRequest/resources/access-control-cookie.py rename to xhr/resources/access-control-cookie.py diff --git a/XMLHttpRequest/resources/access-control-origin-header.py b/xhr/resources/access-control-origin-header.py similarity index 100% rename from XMLHttpRequest/resources/access-control-origin-header.py rename to xhr/resources/access-control-origin-header.py diff --git a/XMLHttpRequest/resources/access-control-preflight-denied.py b/xhr/resources/access-control-preflight-denied.py similarity index 100% rename from XMLHttpRequest/resources/access-control-preflight-denied.py rename to xhr/resources/access-control-preflight-denied.py diff --git a/XMLHttpRequest/resources/access-control-preflight-request-header-lowercase.py b/xhr/resources/access-control-preflight-request-header-lowercase.py similarity index 100% rename from XMLHttpRequest/resources/access-control-preflight-request-header-lowercase.py rename to xhr/resources/access-control-preflight-request-header-lowercase.py diff --git a/XMLHttpRequest/resources/access-control-preflight-request-header-sorted.py b/xhr/resources/access-control-preflight-request-header-sorted.py similarity index 100% rename from XMLHttpRequest/resources/access-control-preflight-request-header-sorted.py rename to xhr/resources/access-control-preflight-request-header-sorted.py diff --git a/XMLHttpRequest/resources/access-control-preflight-request-headers-origin.py b/xhr/resources/access-control-preflight-request-headers-origin.py similarity index 100% rename from XMLHttpRequest/resources/access-control-preflight-request-headers-origin.py rename to xhr/resources/access-control-preflight-request-headers-origin.py diff --git a/XMLHttpRequest/resources/access-control-preflight-request-invalid-status.py b/xhr/resources/access-control-preflight-request-invalid-status.py similarity index 100% rename from XMLHttpRequest/resources/access-control-preflight-request-invalid-status.py rename to xhr/resources/access-control-preflight-request-invalid-status.py diff --git a/XMLHttpRequest/resources/access-control-preflight-request-must-not-contain-cookie.py b/xhr/resources/access-control-preflight-request-must-not-contain-cookie.py similarity index 100% rename from XMLHttpRequest/resources/access-control-preflight-request-must-not-contain-cookie.py rename to xhr/resources/access-control-preflight-request-must-not-contain-cookie.py diff --git a/XMLHttpRequest/resources/access-control-sandboxed-iframe.html b/xhr/resources/access-control-sandboxed-iframe.html similarity index 100% rename from XMLHttpRequest/resources/access-control-sandboxed-iframe.html rename to xhr/resources/access-control-sandboxed-iframe.html diff --git a/XMLHttpRequest/resources/auth1/auth.py b/xhr/resources/auth1/auth.py similarity index 100% rename from XMLHttpRequest/resources/auth1/auth.py rename to xhr/resources/auth1/auth.py diff --git a/XMLHttpRequest/resources/auth2/auth.py b/xhr/resources/auth2/auth.py similarity index 100% rename from XMLHttpRequest/resources/auth2/auth.py rename to xhr/resources/auth2/auth.py diff --git a/XMLHttpRequest/resources/auth2/corsenabled.py b/xhr/resources/auth2/corsenabled.py similarity index 100% rename from XMLHttpRequest/resources/auth2/corsenabled.py rename to xhr/resources/auth2/corsenabled.py diff --git a/XMLHttpRequest/resources/auth3/auth.py b/xhr/resources/auth3/auth.py similarity index 100% rename from XMLHttpRequest/resources/auth3/auth.py rename to xhr/resources/auth3/auth.py diff --git a/XMLHttpRequest/resources/auth4/auth.py b/xhr/resources/auth4/auth.py similarity index 100% rename from XMLHttpRequest/resources/auth4/auth.py rename to xhr/resources/auth4/auth.py diff --git a/XMLHttpRequest/resources/auth5/auth.py b/xhr/resources/auth5/auth.py similarity index 100% rename from XMLHttpRequest/resources/auth5/auth.py rename to xhr/resources/auth5/auth.py diff --git a/XMLHttpRequest/resources/auth6/auth.py b/xhr/resources/auth6/auth.py similarity index 100% rename from XMLHttpRequest/resources/auth6/auth.py rename to xhr/resources/auth6/auth.py diff --git a/XMLHttpRequest/resources/auth7/corsenabled.py b/xhr/resources/auth7/corsenabled.py similarity index 100% rename from XMLHttpRequest/resources/auth7/corsenabled.py rename to xhr/resources/auth7/corsenabled.py diff --git a/XMLHttpRequest/resources/auth8/corsenabled-no-authorize.py b/xhr/resources/auth8/corsenabled-no-authorize.py similarity index 100% rename from XMLHttpRequest/resources/auth8/corsenabled-no-authorize.py rename to xhr/resources/auth8/corsenabled-no-authorize.py diff --git a/XMLHttpRequest/resources/auth9/auth.py b/xhr/resources/auth9/auth.py similarity index 100% rename from XMLHttpRequest/resources/auth9/auth.py rename to xhr/resources/auth9/auth.py diff --git a/XMLHttpRequest/resources/authentication.py b/xhr/resources/authentication.py similarity index 100% rename from XMLHttpRequest/resources/authentication.py rename to xhr/resources/authentication.py diff --git a/XMLHttpRequest/resources/base.xml b/xhr/resources/base.xml similarity index 100% rename from XMLHttpRequest/resources/base.xml rename to xhr/resources/base.xml diff --git a/XMLHttpRequest/resources/chunked.py b/xhr/resources/chunked.py similarity index 100% rename from XMLHttpRequest/resources/chunked.py rename to xhr/resources/chunked.py diff --git a/XMLHttpRequest/resources/conditional.py b/xhr/resources/conditional.py similarity index 100% rename from XMLHttpRequest/resources/conditional.py rename to xhr/resources/conditional.py diff --git a/XMLHttpRequest/resources/content.py b/xhr/resources/content.py similarity index 100% rename from XMLHttpRequest/resources/content.py rename to xhr/resources/content.py diff --git a/XMLHttpRequest/resources/corsenabled.py b/xhr/resources/corsenabled.py similarity index 100% rename from XMLHttpRequest/resources/corsenabled.py rename to xhr/resources/corsenabled.py diff --git a/XMLHttpRequest/resources/delay.py b/xhr/resources/delay.py similarity index 100% rename from XMLHttpRequest/resources/delay.py rename to xhr/resources/delay.py diff --git a/XMLHttpRequest/resources/echo-headers.py b/xhr/resources/echo-headers.py similarity index 100% rename from XMLHttpRequest/resources/echo-headers.py rename to xhr/resources/echo-headers.py diff --git a/XMLHttpRequest/resources/echo-method.py b/xhr/resources/echo-method.py similarity index 100% rename from XMLHttpRequest/resources/echo-method.py rename to xhr/resources/echo-method.py diff --git a/XMLHttpRequest/resources/empty-div-utf8-html.py b/xhr/resources/empty-div-utf8-html.py similarity index 100% rename from XMLHttpRequest/resources/empty-div-utf8-html.py rename to xhr/resources/empty-div-utf8-html.py diff --git a/XMLHttpRequest/resources/folder.txt b/xhr/resources/folder.txt similarity index 100% rename from XMLHttpRequest/resources/folder.txt rename to xhr/resources/folder.txt diff --git a/XMLHttpRequest/resources/form.py b/xhr/resources/form.py similarity index 100% rename from XMLHttpRequest/resources/form.py rename to xhr/resources/form.py diff --git a/XMLHttpRequest/resources/gzip.py b/xhr/resources/gzip.py similarity index 100% rename from XMLHttpRequest/resources/gzip.py rename to xhr/resources/gzip.py diff --git a/XMLHttpRequest/resources/header-content-length.asis b/xhr/resources/header-content-length.asis similarity index 100% rename from XMLHttpRequest/resources/header-content-length.asis rename to xhr/resources/header-content-length.asis diff --git a/XMLHttpRequest/resources/headers-basic.asis b/xhr/resources/headers-basic.asis similarity index 100% rename from XMLHttpRequest/resources/headers-basic.asis rename to xhr/resources/headers-basic.asis diff --git a/XMLHttpRequest/resources/headers.asis b/xhr/resources/headers.asis similarity index 100% rename from XMLHttpRequest/resources/headers.asis rename to xhr/resources/headers.asis diff --git a/XMLHttpRequest/resources/headers.py b/xhr/resources/headers.py similarity index 100% rename from XMLHttpRequest/resources/headers.py rename to xhr/resources/headers.py diff --git a/XMLHttpRequest/resources/image.gif b/xhr/resources/image.gif similarity index 100% rename from XMLHttpRequest/resources/image.gif rename to xhr/resources/image.gif diff --git a/XMLHttpRequest/resources/img-utf8-html.py b/xhr/resources/img-utf8-html.py similarity index 100% rename from XMLHttpRequest/resources/img-utf8-html.py rename to xhr/resources/img-utf8-html.py diff --git a/XMLHttpRequest/resources/img.jpg b/xhr/resources/img.jpg similarity index 100% rename from XMLHttpRequest/resources/img.jpg rename to xhr/resources/img.jpg diff --git a/XMLHttpRequest/resources/infinite-redirects.py b/xhr/resources/infinite-redirects.py similarity index 100% rename from XMLHttpRequest/resources/infinite-redirects.py rename to xhr/resources/infinite-redirects.py diff --git a/XMLHttpRequest/resources/init.htm b/xhr/resources/init.htm similarity index 100% rename from XMLHttpRequest/resources/init.htm rename to xhr/resources/init.htm diff --git a/XMLHttpRequest/resources/inspect-headers.py b/xhr/resources/inspect-headers.py similarity index 100% rename from XMLHttpRequest/resources/inspect-headers.py rename to xhr/resources/inspect-headers.py diff --git a/XMLHttpRequest/resources/invalid-utf8-html.py b/xhr/resources/invalid-utf8-html.py similarity index 100% rename from XMLHttpRequest/resources/invalid-utf8-html.py rename to xhr/resources/invalid-utf8-html.py diff --git a/XMLHttpRequest/resources/last-modified.py b/xhr/resources/last-modified.py similarity index 100% rename from XMLHttpRequest/resources/last-modified.py rename to xhr/resources/last-modified.py diff --git a/XMLHttpRequest/resources/no-custom-header-on-preflight.py b/xhr/resources/no-custom-header-on-preflight.py similarity index 100% rename from XMLHttpRequest/resources/no-custom-header-on-preflight.py rename to xhr/resources/no-custom-header-on-preflight.py diff --git a/XMLHttpRequest/resources/nocors/folder.txt b/xhr/resources/nocors/folder.txt similarity index 100% rename from XMLHttpRequest/resources/nocors/folder.txt rename to xhr/resources/nocors/folder.txt diff --git a/XMLHttpRequest/resources/parse-headers.py b/xhr/resources/parse-headers.py similarity index 100% rename from XMLHttpRequest/resources/parse-headers.py rename to xhr/resources/parse-headers.py diff --git a/XMLHttpRequest/resources/pass.txt b/xhr/resources/pass.txt similarity index 100% rename from XMLHttpRequest/resources/pass.txt rename to xhr/resources/pass.txt diff --git a/XMLHttpRequest/resources/redirect-cors.py b/xhr/resources/redirect-cors.py similarity index 100% rename from XMLHttpRequest/resources/redirect-cors.py rename to xhr/resources/redirect-cors.py diff --git a/XMLHttpRequest/resources/redirect.py b/xhr/resources/redirect.py similarity index 100% rename from XMLHttpRequest/resources/redirect.py rename to xhr/resources/redirect.py diff --git a/XMLHttpRequest/resources/requri.py b/xhr/resources/requri.py similarity index 100% rename from XMLHttpRequest/resources/requri.py rename to xhr/resources/requri.py diff --git a/XMLHttpRequest/resources/reset-token.py b/xhr/resources/reset-token.py similarity index 100% rename from XMLHttpRequest/resources/reset-token.py rename to xhr/resources/reset-token.py diff --git a/XMLHttpRequest/resources/responseType-document-in-worker.js b/xhr/resources/responseType-document-in-worker.js similarity index 100% rename from XMLHttpRequest/resources/responseType-document-in-worker.js rename to xhr/resources/responseType-document-in-worker.js diff --git a/XMLHttpRequest/resources/responseXML-unavailable-in-worker.js b/xhr/resources/responseXML-unavailable-in-worker.js similarity index 100% rename from XMLHttpRequest/resources/responseXML-unavailable-in-worker.js rename to xhr/resources/responseXML-unavailable-in-worker.js diff --git a/XMLHttpRequest/resources/send-after-setting-document-domain-window-1.htm b/xhr/resources/send-after-setting-document-domain-window-1.htm similarity index 100% rename from XMLHttpRequest/resources/send-after-setting-document-domain-window-1.htm rename to xhr/resources/send-after-setting-document-domain-window-1.htm diff --git a/XMLHttpRequest/resources/send-after-setting-document-domain-window-2.htm b/xhr/resources/send-after-setting-document-domain-window-2.htm similarity index 100% rename from XMLHttpRequest/resources/send-after-setting-document-domain-window-2.htm rename to xhr/resources/send-after-setting-document-domain-window-2.htm diff --git a/XMLHttpRequest/resources/send-after-setting-document-domain-window-helper.js b/xhr/resources/send-after-setting-document-domain-window-helper.js similarity index 100% rename from XMLHttpRequest/resources/send-after-setting-document-domain-window-helper.js rename to xhr/resources/send-after-setting-document-domain-window-helper.js diff --git a/XMLHttpRequest/resources/shift-jis-html.py b/xhr/resources/shift-jis-html.py similarity index 100% rename from XMLHttpRequest/resources/shift-jis-html.py rename to xhr/resources/shift-jis-html.py diff --git a/XMLHttpRequest/resources/status.py b/xhr/resources/status.py similarity index 100% rename from XMLHttpRequest/resources/status.py rename to xhr/resources/status.py diff --git a/XMLHttpRequest/resources/trickle.py b/xhr/resources/trickle.py similarity index 100% rename from XMLHttpRequest/resources/trickle.py rename to xhr/resources/trickle.py diff --git a/XMLHttpRequest/resources/upload.py b/xhr/resources/upload.py similarity index 100% rename from XMLHttpRequest/resources/upload.py rename to xhr/resources/upload.py diff --git a/XMLHttpRequest/resources/utf16-bom.json b/xhr/resources/utf16-bom.json similarity index 100% rename from XMLHttpRequest/resources/utf16-bom.json rename to xhr/resources/utf16-bom.json diff --git a/XMLHttpRequest/resources/utf16.txt b/xhr/resources/utf16.txt similarity index 100% rename from XMLHttpRequest/resources/utf16.txt rename to xhr/resources/utf16.txt diff --git a/XMLHttpRequest/resources/well-formed.xml b/xhr/resources/well-formed.xml similarity index 100% rename from XMLHttpRequest/resources/well-formed.xml rename to xhr/resources/well-formed.xml diff --git a/XMLHttpRequest/resources/win-1252-html.py b/xhr/resources/win-1252-html.py similarity index 100% rename from XMLHttpRequest/resources/win-1252-html.py rename to xhr/resources/win-1252-html.py diff --git a/XMLHttpRequest/resources/win-1252-xml.py b/xhr/resources/win-1252-xml.py similarity index 100% rename from XMLHttpRequest/resources/win-1252-xml.py rename to xhr/resources/win-1252-xml.py diff --git a/XMLHttpRequest/resources/workerxhr-origin-referrer.js b/xhr/resources/workerxhr-origin-referrer.js similarity index 100% rename from XMLHttpRequest/resources/workerxhr-origin-referrer.js rename to xhr/resources/workerxhr-origin-referrer.js diff --git a/XMLHttpRequest/resources/workerxhr-simple.js b/xhr/resources/workerxhr-simple.js similarity index 100% rename from XMLHttpRequest/resources/workerxhr-simple.js rename to xhr/resources/workerxhr-simple.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-event-order.js b/xhr/resources/xmlhttprequest-event-order.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-event-order.js rename to xhr/resources/xmlhttprequest-event-order.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-aborted.js b/xhr/resources/xmlhttprequest-timeout-aborted.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-aborted.js rename to xhr/resources/xmlhttprequest-timeout-aborted.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-abortedonmain.js b/xhr/resources/xmlhttprequest-timeout-abortedonmain.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-abortedonmain.js rename to xhr/resources/xmlhttprequest-timeout-abortedonmain.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-overrides.js b/xhr/resources/xmlhttprequest-timeout-overrides.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-overrides.js rename to xhr/resources/xmlhttprequest-timeout-overrides.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-overridesexpires.js b/xhr/resources/xmlhttprequest-timeout-overridesexpires.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-overridesexpires.js rename to xhr/resources/xmlhttprequest-timeout-overridesexpires.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-runner.js b/xhr/resources/xmlhttprequest-timeout-runner.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-runner.js rename to xhr/resources/xmlhttprequest-timeout-runner.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js b/xhr/resources/xmlhttprequest-timeout-simple.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js rename to xhr/resources/xmlhttprequest-timeout-simple.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js b/xhr/resources/xmlhttprequest-timeout-synconmain.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js rename to xhr/resources/xmlhttprequest-timeout-synconmain.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js b/xhr/resources/xmlhttprequest-timeout-synconworker.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js rename to xhr/resources/xmlhttprequest-timeout-synconworker.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js b/xhr/resources/xmlhttprequest-timeout-twice.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js rename to xhr/resources/xmlhttprequest-timeout-twice.js diff --git a/XMLHttpRequest/resources/xmlhttprequest-timeout.js b/xhr/resources/xmlhttprequest-timeout.js similarity index 100% rename from XMLHttpRequest/resources/xmlhttprequest-timeout.js rename to xhr/resources/xmlhttprequest-timeout.js diff --git a/XMLHttpRequest/resources/zlib.py b/xhr/resources/zlib.py similarity index 100% rename from XMLHttpRequest/resources/zlib.py rename to xhr/resources/zlib.py diff --git a/XMLHttpRequest/response-data-arraybuffer.htm b/xhr/response-data-arraybuffer.htm similarity index 100% rename from XMLHttpRequest/response-data-arraybuffer.htm rename to xhr/response-data-arraybuffer.htm diff --git a/XMLHttpRequest/response-data-blob.htm b/xhr/response-data-blob.htm similarity index 100% rename from XMLHttpRequest/response-data-blob.htm rename to xhr/response-data-blob.htm diff --git a/XMLHttpRequest/response-data-deflate.htm b/xhr/response-data-deflate.htm similarity index 100% rename from XMLHttpRequest/response-data-deflate.htm rename to xhr/response-data-deflate.htm diff --git a/XMLHttpRequest/response-data-gzip.htm b/xhr/response-data-gzip.htm similarity index 100% rename from XMLHttpRequest/response-data-gzip.htm rename to xhr/response-data-gzip.htm diff --git a/XMLHttpRequest/response-data-progress.htm b/xhr/response-data-progress.htm similarity index 100% rename from XMLHttpRequest/response-data-progress.htm rename to xhr/response-data-progress.htm diff --git a/XMLHttpRequest/response-invalid-responsetype.htm b/xhr/response-invalid-responsetype.htm similarity index 100% rename from XMLHttpRequest/response-invalid-responsetype.htm rename to xhr/response-invalid-responsetype.htm diff --git a/XMLHttpRequest/response-json.htm b/xhr/response-json.htm similarity index 100% rename from XMLHttpRequest/response-json.htm rename to xhr/response-json.htm diff --git a/XMLHttpRequest/response-method.htm b/xhr/response-method.htm similarity index 100% rename from XMLHttpRequest/response-method.htm rename to xhr/response-method.htm diff --git a/XMLHttpRequest/responseText-status.html b/xhr/responseText-status.html similarity index 100% rename from XMLHttpRequest/responseText-status.html rename to xhr/responseText-status.html diff --git a/XMLHttpRequest/responseType-document-in-worker.html b/xhr/responseType-document-in-worker.html similarity index 100% rename from XMLHttpRequest/responseType-document-in-worker.html rename to xhr/responseType-document-in-worker.html diff --git a/XMLHttpRequest/responseXML-unavailable-in-worker.html b/xhr/responseXML-unavailable-in-worker.html similarity index 100% rename from XMLHttpRequest/responseXML-unavailable-in-worker.html rename to xhr/responseXML-unavailable-in-worker.html diff --git a/XMLHttpRequest/responsedocument-decoding.htm b/xhr/responsedocument-decoding.htm similarity index 100% rename from XMLHttpRequest/responsedocument-decoding.htm rename to xhr/responsedocument-decoding.htm diff --git a/XMLHttpRequest/responsetext-decoding.htm b/xhr/responsetext-decoding.htm similarity index 100% rename from XMLHttpRequest/responsetext-decoding.htm rename to xhr/responsetext-decoding.htm diff --git a/XMLHttpRequest/responsetype.html b/xhr/responsetype.html similarity index 100% rename from XMLHttpRequest/responsetype.html rename to xhr/responsetype.html diff --git a/XMLHttpRequest/responseurl.html b/xhr/responseurl.html similarity index 100% rename from XMLHttpRequest/responseurl.html rename to xhr/responseurl.html diff --git a/XMLHttpRequest/responsexml-basic.htm b/xhr/responsexml-basic.htm similarity index 100% rename from XMLHttpRequest/responsexml-basic.htm rename to xhr/responsexml-basic.htm diff --git a/XMLHttpRequest/responsexml-document-properties.htm b/xhr/responsexml-document-properties.htm similarity index 100% rename from XMLHttpRequest/responsexml-document-properties.htm rename to xhr/responsexml-document-properties.htm diff --git a/XMLHttpRequest/responsexml-get-twice.htm b/xhr/responsexml-get-twice.htm similarity index 100% rename from XMLHttpRequest/responsexml-get-twice.htm rename to xhr/responsexml-get-twice.htm diff --git a/XMLHttpRequest/responsexml-media-type.htm b/xhr/responsexml-media-type.htm similarity index 100% rename from XMLHttpRequest/responsexml-media-type.htm rename to xhr/responsexml-media-type.htm diff --git a/XMLHttpRequest/responsexml-non-document-types.htm b/xhr/responsexml-non-document-types.htm similarity index 100% rename from XMLHttpRequest/responsexml-non-document-types.htm rename to xhr/responsexml-non-document-types.htm diff --git a/XMLHttpRequest/responsexml-non-well-formed.htm b/xhr/responsexml-non-well-formed.htm similarity index 100% rename from XMLHttpRequest/responsexml-non-well-formed.htm rename to xhr/responsexml-non-well-formed.htm diff --git a/XMLHttpRequest/security-consideration.sub.html b/xhr/security-consideration.sub.html similarity index 93% rename from XMLHttpRequest/security-consideration.sub.html rename to xhr/security-consideration.sub.html index 5eb7110d41a874..a364e2cb8da47a 100644 --- a/XMLHttpRequest/security-consideration.sub.html +++ b/xhr/security-consideration.sub.html @@ -28,7 +28,7 @@ assert_equals(pe.total, 0, "total is zero."); this.done(); }); - xhr.open("GET", "http://{{host}}:{{ports[http][1]}}/XMLHttpRequest/resources/img.jpg", true); + xhr.open("GET", "http://{{host}}:{{ports[http][1]}}/xhr/resources/img.jpg", true); xhr.send(null); }) diff --git a/XMLHttpRequest/send-accept-language.htm b/xhr/send-accept-language.htm similarity index 100% rename from XMLHttpRequest/send-accept-language.htm rename to xhr/send-accept-language.htm diff --git a/XMLHttpRequest/send-accept.htm b/xhr/send-accept.htm similarity index 100% rename from XMLHttpRequest/send-accept.htm rename to xhr/send-accept.htm diff --git a/XMLHttpRequest/send-after-setting-document-domain.htm b/xhr/send-after-setting-document-domain.htm similarity index 97% rename from XMLHttpRequest/send-after-setting-document-domain.htm rename to xhr/send-after-setting-document-domain.htm index 30b6c713cc4278..49eeb955533c0e 100644 --- a/XMLHttpRequest/send-after-setting-document-domain.htm +++ b/xhr/send-after-setting-document-domain.htm @@ -9,7 +9,7 @@