Commit Graph
12 Commits
Author SHA1 Message Date
James Graham 99f3698b17 Bug 1356225 - Update web-platform-tests to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GmGgeZxHy0j
2017-04-20 10:49:24 +01:00
Sebastian Hengst ae83546ec4 Backed out changeset e7024412b94e (bug 1356225)
MozReview-Commit-ID: Ib8aOAM6cQ2
2017-04-14 17:18:47 +02:00
James Graham 468eebfa83 Bug 1356225 - Update web-platform-tests to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GmGgeZxHy0j
2017-04-13 16:22:32 +01:00
Andrew Sutherland 1a4f099a52 Bug 1272436 - P1 Fetch "only-if-cached" cache mode tests. r=bkelly
request-error.html:
- Add test verifying we enforce only-if-cached requires same-origin mode.

request-cache.html (only-if-cached does not hit network):
- Add comment block explaining the test dictionary arguments.
- Eliminate duplicated code in populate_cache which seems to have existed only
  for historical reasons and is now moot.
- Add `response` optional test dictionary array for cases where a network error
  is expected as the result of the fetch.  Normalize server results to handle
  this case since test cases may no longer talk to the server at all.
- Add only-if-cached tests that verify the network is not touched in any of
  the fresh cached, stale cached, and not cached cases.

request-cache.html (cross-origin redirects in the cache are not traversed):
- Tests added to request/request-cache.html instead of under redirect/ because
  redirect/ and redirect.py explicitly disable caching.  Also, the issue is
  about cache behavior, not the redirect-following logic.
- Enhance cache.py to accept a "redirect" parameter that generates a 302
  redirect using a Location header when received.
- Make the "error" handling generate a test failure if we don't fail when
  expected.
- Add "redirect" argument to request-cache.html test info dicts to tell
  cache.py to generate a redirect.
- Add test cases for "only-if-cached" to first prime with redirect, expecting
  success on same-origin redirects and failure on cross-origin redirects.
2016-06-08 12:10:21 -04:00
Ehsan Akhgari 125e2788b0 Bug 1120715 - Part 5: Treat a default cache mode Request with a revalidation header as no-store; r=bkelly 2016-03-11 14:40:49 -05:00
Ehsan Akhgari c404dfb7d4 Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-11 14:40:45 -05:00
Ryan VanderMeulen 29a0483afa Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)

CLOSED TREE
2016-03-10 20:20:05 -05:00
Ehsan Akhgari 827c509d38 Bug 1120715 - Part 5: Treat a default cache mode Request with a revalidation header as no-store; r=bkelly 2016-03-10 17:29:11 -05:00
Ehsan Akhgari f3f76bd6e6 Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-10 17:29:11 -05:00
Wes Kocher 59b783e560 Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)

MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Ehsan Akhgari e548024563 Bug 1120715 - Part 5: Treat a default cache mode Request with a revalidation header as no-store; r=bkelly 2016-03-09 16:44:58 -05:00
Ehsan Akhgari fc8965058c Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-09 16:44:50 -05:00