Bug 1764967 [wpt PR 33656] - Migrate iframe-based Client Hint WPTs to import client...
commit065aee4d4e02ddbc5b99869282ad48e37beaccb8
authorVictor Tan <victortan@chromium.org>
Sat, 7 May 2022 10:59:01 +0000 (7 10:59 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 15 May 2022 20:20:51 +0000 (15 20:20 +0000)
tree4529311ccd11c2a558a2d5f8864df54c38e13383
parent4bf2ca282118a2eb289d2265b7ccca4fb6a3756b
Bug 1764967 [wpt PR 33656] - Migrate iframe-based Client Hint WPTs to import client hints lists, a=testonly

Automatic update from web-platform-tests
Migrate iframe-based Client Hint WPTs to import client hints lists

Introduce two new files into "client-hints/resources" to centralize the
dependencies of client hint token lists across javascript and python
tests:

  - export.js
  - clienthintslist.py

Eventually all Client Hints tests will be migrated to using these lists
to pare down the number of tests touched when creating new hints; this
CL pertains to the tests that depend on
"client-hints/resources/expect-client-hints-headers-iframe.py"

One of change is the query strings fed to
"expect-client-hints-headers-iframe.py" is now generated in
"client-hints/resources/feature-policy-navigation.js".

Another change is fixing tests related to `sec-ch-ua-platform` since we
added platform to client hints returned by default in
getHighEntropyValues in https://crrev.com/c/3389295.

Bug: 1304740
Change-Id: Id41ddbe1ee29c10f7b7c96a283f7eca2abec438b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3549556
Reviewed-by: Ali Beyad <abeyad@chromium.org>
Commit-Queue: Victor Tan <victortan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#993338}

--

wpt-commits: 0f27025f24489190e35227dd768fc439599a759b
wpt-pr: 33656
19 files changed:
testing/web-platform/tests/client-hints/accept-ch/feature-policy-navigation/__dir__.headers
testing/web-platform/tests/client-hints/accept-ch/feature-policy-navigation/feature-policy.https.html
testing/web-platform/tests/client-hints/accept-ch/feature-policy-navigation/feature-policy.https.html.headers
testing/web-platform/tests/client-hints/accept-ch/feature-policy-navigation/no-feature-policy.https.html
testing/web-platform/tests/client-hints/http-equiv-accept-ch-iframe.https.html
testing/web-platform/tests/client-hints/meta-name-accept-ch-iframe.https.html
testing/web-platform/tests/client-hints/resources/clienthintslist.py [new file with mode: 0644]
testing/web-platform/tests/client-hints/resources/expect-client-hints-headers-iframe.py
testing/web-platform/tests/client-hints/resources/export.js [new file with mode: 0644]
testing/web-platform/tests/client-hints/resources/feature-policy-navigation.js
testing/web-platform/tests/client-hints/sandbox/__dir__.headers
testing/web-platform/tests/client-hints/sandbox/iframe-csp-same-origin.https.html
testing/web-platform/tests/client-hints/sandbox/iframe-csp.https.html
testing/web-platform/tests/client-hints/sandbox/iframe-iframe-popups.https.html
testing/web-platform/tests/client-hints/sandbox/iframe-popups-escape-sandbox.https.html
testing/web-platform/tests/client-hints/sandbox/iframe-popups.https.html
testing/web-platform/tests/client-hints/sandbox/iframe-same-origin.https.html
testing/web-platform/tests/client-hints/sandbox/iframe.https.html
testing/web-platform/tests/client-hints/sandbox/resources/util.js