tree: 1cfe35b090ad5a91d56cf21a1ae9f744c4964f16 [path history] [tgz]
  1. resources/
  2. cross-origin-iframe-not-setting-other-origins.https.html
  3. cross-origin-iframe-not-setting-own-origin.https.html
  4. cross-origin-iframe-redirect-with-fp-delegation.https.html
  5. cross-origin-iframe-redirect-with-fp-delegation.https.html.headers
  6. cross-origin-navigation-redirect.https.html
  7. cross-origin-navigation-redirect.https.html.headers
  8. cross-origin-navigation.https.html
  9. cross-origin-subresource-redirect-with-fp-delegation.https.html
  10. cross-origin-subresource-redirect-with-fp-delegation.https.html.headers
  11. cross-origin-subresource-redirect.https.html
  12. cross-origin-subresource-redirect.https.html.headers
  13. cross-origin-subresource-with-feature-policy.https.html
  14. cross-origin-subresource.https.html
  15. cross-origin-syncxhr-redirect.https.html
  16. cross-origin-syncxhr-redirect.https.html.headers
  17. http-equiv-cross-origin-iframe-not-setting-other-origins.https.html
  18. http-equiv-cross-origin-iframe-not-setting-own-origin.https.html
  19. http-equiv-cross-origin-navigation.https.html
  20. http-equiv-cross-origin-subresource.https.html
  21. http-equiv-same-origin-iframe.https.html
  22. http-equiv-same-origin-navigation.https.html
  23. http-equiv-same-origin-subresource.https.html
  24. README.md
  25. same-origin-iframe.https.html
  26. same-origin-navigation-empty-accept-ch.https.html
  27. same-origin-navigation-no-accept-ch.https.html
  28. same-origin-navigation-redirect.https.html
  29. same-origin-navigation.https.html
  30. same-origin-subresource-redirect-opted-in.https.html
  31. same-origin-subresource-redirect-opted-in.https.html.headers
  32. same-origin-subresource-redirect.https.html
  33. same-origin-subresource.https.html
chromium/src/third_party/blink/web_tests/external/wpt/client-hints/accept-ch-stickiness/README.md

These tests all follow the same format, calling the run_test function from resources/accept_ch_test.js. This function does the following:

  • checks to make sure no client-hint preferences are saved for a particular origin
  • loading a page with the response header Accept-CH: device-memory via a particular method:
    • Navigation (via window.open)
    • Subresource (via fetch)
    • iframe (added via js)
  • Navigates to another page to check if the device-memory client hint was sent with the next request

Each test is in a separate file to ensure that the browser and it's state is properly reset between each test.