diff options
Diffstat (limited to '')
13 files changed, 583 insertions, 0 deletions
diff --git a/testing/web-platform/meta/fetch/http-cache/304-update.any.js.ini b/testing/web-platform/meta/fetch/http-cache/304-update.any.js.ini new file mode 100644 index 0000000000..e02ef49508 --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/304-update.any.js.ini @@ -0,0 +1,29 @@ +[304-update.any.html] + [HTTP cache updates stored headers from a Last-Modified 304] + expected: [PASS, FAIL] + + +[304-update.any.worker.html] + [HTTP cache updates stored headers from a Last-Modified 304] + expected: + if (os == "mac") and not debug: PASS + [PASS, FAIL] + + +[304-update.any.serviceworker.html] + expected: + if processor == "x86": [OK, TIMEOUT] + [HTTP cache updates stored headers from a Last-Modified 304] + expected: [PASS, FAIL] + + [Content-* header] + expected: + if processor == "x86": [PASS, TIMEOUT] + + +[304-update.any.sharedworker.html] + [HTTP cache updates stored headers from a Last-Modified 304] + expected: + if (os == "win") and debug and (processor == "x86_64") and not swgl: PASS + if (os == "win") and not debug: PASS + [PASS, FAIL] diff --git a/testing/web-platform/meta/fetch/http-cache/__dir__.ini b/testing/web-platform/meta/fetch/http-cache/__dir__.ini new file mode 100644 index 0000000000..ddc947c9bb --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/__dir__.ini @@ -0,0 +1 @@ +prefs: [network.http.rcwn.enabled:false, privacy.partition.network_state:true] diff --git a/testing/web-platform/meta/fetch/http-cache/cache-mode.any.js.ini b/testing/web-platform/meta/fetch/http-cache/cache-mode.any.js.ini new file mode 100644 index 0000000000..996dbab4b0 --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/cache-mode.any.js.ini @@ -0,0 +1,50 @@ +[cache-mode.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Fetch doesn't touch Cache-Control when cache mode is no-store and Cache-Control is already present] + expected: FAIL + + [Fetch sends Cache-Control: max-age=0 when cache mode is no-cache] + expected: FAIL + + [Fetch doesn't touch Pragma when cache mode is no-store and Pragma is already present] + expected: FAIL + + +[cache-mode.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Fetch doesn't touch Cache-Control when cache mode is no-store and Cache-Control is already present] + expected: FAIL + + [Fetch sends Cache-Control: max-age=0 when cache mode is no-cache] + expected: FAIL + + [Fetch doesn't touch Pragma when cache mode is no-store and Pragma is already present] + expected: FAIL + + +[cache-mode.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Fetch doesn't touch Cache-Control when cache mode is no-store and Cache-Control is already present] + expected: FAIL + + [Fetch sends Cache-Control: max-age=0 when cache mode is no-cache] + expected: FAIL + + [Fetch doesn't touch Pragma when cache mode is no-store and Pragma is already present] + expected: FAIL + + +[cache-mode.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Fetch doesn't touch Cache-Control when cache mode is no-store and Cache-Control is already present] + expected: FAIL + + [Fetch sends Cache-Control: max-age=0 when cache mode is no-cache] + expected: FAIL + + [Fetch doesn't touch Pragma when cache mode is no-store and Pragma is already present] + expected: FAIL diff --git a/testing/web-platform/meta/fetch/http-cache/cc-request.any.js.ini b/testing/web-platform/meta/fetch/http-cache/cc-request.any.js.ini new file mode 100644 index 0000000000..24a88dec8c --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/cc-request.any.js.ini @@ -0,0 +1,38 @@ +[cc-request.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache generates 504 status code when nothing is in cache and request contains Cache-Control: only-if-cached] + expected: FAIL + + [HTTP cache doesn't use aged but fresh response when request contains Cache-Control: max-age=1] + expected: + if (os == "android") and debug: [PASS, FAIL] + + +[cc-request.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache generates 504 status code when nothing is in cache and request contains Cache-Control: only-if-cached] + expected: FAIL + + [HTTP cache doesn't use aged but fresh response when request contains Cache-Control: max-age=1] + expected: + if (os == "android") and debug: [PASS, FAIL] + + +[cc-request.any.html] + expected: + if (os == "android") and fission: [TIMEOUT, OK] + [HTTP cache generates 504 status code when nothing is in cache and request contains Cache-Control: only-if-cached] + expected: FAIL + + +[cc-request.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache generates 504 status code when nothing is in cache and request contains Cache-Control: only-if-cached] + expected: FAIL + + [HTTP cache doesn't use aged but fresh response when request contains Cache-Control: max-age=1] + expected: + if (os == "android") and debug: [PASS, FAIL] diff --git a/testing/web-platform/meta/fetch/http-cache/credentials.tentative.any.js.ini b/testing/web-platform/meta/fetch/http-cache/credentials.tentative.any.js.ini new file mode 100644 index 0000000000..3f6d3c5c4f --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/credentials.tentative.any.js.ini @@ -0,0 +1,15 @@ +[credentials.tentative.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + +[credentials.tentative.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + +[credentials.tentative.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + +[credentials.tentative.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] diff --git a/testing/web-platform/meta/fetch/http-cache/freshness.any.js.ini b/testing/web-platform/meta/fetch/http-cache/freshness.any.js.ini new file mode 100644 index 0000000000..76568e3fa9 --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/freshness.any.js.ini @@ -0,0 +1,15 @@ +[freshness.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + +[freshness.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + +[freshness.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + +[freshness.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] diff --git a/testing/web-platform/meta/fetch/http-cache/heuristic.any.js.ini b/testing/web-platform/meta/fetch/http-cache/heuristic.any.js.ini new file mode 100644 index 0000000000..6e50a87d85 --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/heuristic.any.js.ini @@ -0,0 +1,74 @@ +[heuristic.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache reuses a 414 URI Too Long response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses a 405 Method Not Allowed response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses a 501 Not Implemented response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses an unknown response with Last-Modified based upon heuristic freshness when Cache-Control: public is present] + expected: FAIL + + [HTTP cache reuses a 404 Not Found response with Last-Modified based upon heuristic freshness] + expected: FAIL + + +[heuristic.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache reuses a 414 URI Too Long response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses a 405 Method Not Allowed response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses a 501 Not Implemented response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses an unknown response with Last-Modified based upon heuristic freshness when Cache-Control: public is present] + expected: FAIL + + [HTTP cache reuses a 404 Not Found response with Last-Modified based upon heuristic freshness] + expected: FAIL + + +[heuristic.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache reuses a 414 URI Too Long response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses a 405 Method Not Allowed response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses a 501 Not Implemented response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses an unknown response with Last-Modified based upon heuristic freshness when Cache-Control: public is present] + expected: FAIL + + [HTTP cache reuses a 404 Not Found response with Last-Modified based upon heuristic freshness] + expected: FAIL + + +[heuristic.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache reuses a 414 URI Too Long response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses a 405 Method Not Allowed response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses a 501 Not Implemented response with Last-Modified based upon heuristic freshness] + expected: FAIL + + [HTTP cache reuses an unknown response with Last-Modified based upon heuristic freshness when Cache-Control: public is present] + expected: FAIL + + [HTTP cache reuses a 404 Not Found response with Last-Modified based upon heuristic freshness] + expected: FAIL diff --git a/testing/web-platform/meta/fetch/http-cache/invalidate.any.js.ini b/testing/web-platform/meta/fetch/http-cache/invalidate.any.js.ini new file mode 100644 index 0000000000..35e5fdd2ae --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/invalidate.any.js.ini @@ -0,0 +1,50 @@ +[invalidate.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache does not invalidate after a failed response from an unsafe request] + expected: FAIL + + [HTTP cache does not invalidate Content-Location URL after a failed response from an unsafe request] + expected: FAIL + + [HTTP cache does not invalidate Location URL after a failed response from an unsafe request] + expected: FAIL + + +[invalidate.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache does not invalidate after a failed response from an unsafe request] + expected: FAIL + + [HTTP cache does not invalidate Content-Location URL after a failed response from an unsafe request] + expected: FAIL + + [HTTP cache does not invalidate Location URL after a failed response from an unsafe request] + expected: FAIL + + +[invalidate.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache does not invalidate after a failed response from an unsafe request] + expected: FAIL + + [HTTP cache does not invalidate Content-Location URL after a failed response from an unsafe request] + expected: FAIL + + [HTTP cache does not invalidate Location URL after a failed response from an unsafe request] + expected: FAIL + + +[invalidate.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache does not invalidate after a failed response from an unsafe request] + expected: FAIL + + [HTTP cache does not invalidate Content-Location URL after a failed response from an unsafe request] + expected: FAIL + + [HTTP cache does not invalidate Location URL after a failed response from an unsafe request] + expected: FAIL diff --git a/testing/web-platform/meta/fetch/http-cache/partial.any.js.ini b/testing/web-platform/meta/fetch/http-cache/partial.any.js.ini new file mode 100644 index 0000000000..5904796d69 --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/partial.any.js.ini @@ -0,0 +1,122 @@ +[partial.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache stores partial response and serves smaller ranges from it (suffix-byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (byte-range-spec)] + expected: FAIL + + [HTTP cache stores partial response and serves smaller ranges from it (absent last-byte-pos)] + expected: FAIL + + [HTTP cache stores partial content and reuses it] + expected: FAIL + + [HTTP cache stores partial content and completes it] + expected: FAIL + + [HTTP cache stores partial response and serves smaller ranges from it (byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (absent last-byte-pos)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (suffix-byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it with only-if-cached] + expected: FAIL + + +[partial.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache stores partial response and serves smaller ranges from it (suffix-byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (byte-range-spec)] + expected: FAIL + + [HTTP cache stores partial response and serves smaller ranges from it (absent last-byte-pos)] + expected: FAIL + + [HTTP cache stores partial content and reuses it] + expected: FAIL + + [HTTP cache stores partial content and completes it] + expected: FAIL + + [HTTP cache stores partial response and serves smaller ranges from it (byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (absent last-byte-pos)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (suffix-byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it with only-if-cached] + expected: FAIL + + +[partial.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache stores partial response and serves smaller ranges from it (suffix-byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (byte-range-spec)] + expected: FAIL + + [HTTP cache stores partial response and serves smaller ranges from it (absent last-byte-pos)] + expected: FAIL + + [HTTP cache stores partial content and reuses it] + expected: FAIL + + [HTTP cache stores partial content and completes it] + expected: FAIL + + [HTTP cache stores partial response and serves smaller ranges from it (byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (absent last-byte-pos)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (suffix-byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it with only-if-cached] + expected: FAIL + + +[partial.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache stores partial response and serves smaller ranges from it (suffix-byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (byte-range-spec)] + expected: FAIL + + [HTTP cache stores partial response and serves smaller ranges from it (absent last-byte-pos)] + expected: FAIL + + [HTTP cache stores partial content and reuses it] + expected: FAIL + + [HTTP cache stores partial content and completes it] + expected: FAIL + + [HTTP cache stores partial response and serves smaller ranges from it (byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (absent last-byte-pos)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it (suffix-byte-range-spec)] + expected: FAIL + + [HTTP cache stores complete response and serves smaller ranges from it with only-if-cached] + expected: FAIL diff --git a/testing/web-platform/meta/fetch/http-cache/post-patch.any.js.ini b/testing/web-platform/meta/fetch/http-cache/post-patch.any.js.ini new file mode 100644 index 0000000000..5fbccba42c --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/post-patch.any.js.ini @@ -0,0 +1,38 @@ +[post-patch.any.html] + expected: + if (os == "android") and fission: [TIMEOUT, OK] + [HTTP cache uses content after POST request with response containing Content-Location and cache-allowing header] + expected: FAIL + + [HTTP cache uses content after PATCH request with response containing Content-Location and cache-allowing header] + expected: FAIL + + +[post-patch.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache uses content after POST request with response containing Content-Location and cache-allowing header] + expected: FAIL + + [HTTP cache uses content after PATCH request with response containing Content-Location and cache-allowing header] + expected: FAIL + + +[post-patch.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache uses content after POST request with response containing Content-Location and cache-allowing header] + expected: FAIL + + [HTTP cache uses content after PATCH request with response containing Content-Location and cache-allowing header] + expected: FAIL + + +[post-patch.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache uses content after POST request with response containing Content-Location and cache-allowing header] + expected: FAIL + + [HTTP cache uses content after PATCH request with response containing Content-Location and cache-allowing header] + expected: FAIL diff --git a/testing/web-platform/meta/fetch/http-cache/split-cache.html.ini b/testing/web-platform/meta/fetch/http-cache/split-cache.html.ini new file mode 100644 index 0000000000..b0ac8e5916 --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/split-cache.html.ini @@ -0,0 +1,3 @@ +[split-cache.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] diff --git a/testing/web-platform/meta/fetch/http-cache/status.any.js.ini b/testing/web-platform/meta/fetch/http-cache/status.any.js.ini new file mode 100644 index 0000000000..a164d3264b --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/status.any.js.ini @@ -0,0 +1,122 @@ +[status.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache avoids going to the network if it has a fresh 299 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 599 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 499 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 504 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 404 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 400 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 503 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 500 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 502 response] + expected: FAIL + + +[status.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache avoids going to the network if it has a fresh 299 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 599 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 499 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 504 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 404 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 400 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 503 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 500 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 502 response] + expected: FAIL + + +[status.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache avoids going to the network if it has a fresh 299 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 599 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 499 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 504 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 404 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 400 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 503 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 500 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 502 response] + expected: FAIL + + +[status.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache avoids going to the network if it has a fresh 299 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 599 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 499 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 504 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 404 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 400 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 503 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 500 response] + expected: FAIL + + [HTTP cache avoids going to the network if it has a fresh 502 response] + expected: FAIL diff --git a/testing/web-platform/meta/fetch/http-cache/vary.any.js.ini b/testing/web-platform/meta/fetch/http-cache/vary.any.js.ini new file mode 100644 index 0000000000..ac95a936d3 --- /dev/null +++ b/testing/web-platform/meta/fetch/http-cache/vary.any.js.ini @@ -0,0 +1,26 @@ +[vary.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache doesn't invalidate existing Vary response] + expected: FAIL + + +[vary.any.sharedworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache doesn't invalidate existing Vary response] + expected: FAIL + + +[vary.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache doesn't invalidate existing Vary response] + expected: FAIL + + +[vary.any.serviceworker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [HTTP cache doesn't invalidate existing Vary response] + expected: FAIL |