Files
sousa-gecko/testing/web-platform/tests/fenced-frame/client-hints.https.html
T
Mike Taylor e8ca07b129 Bug 2002471 [wpt PR 56282] - Remove leftover "sec-ch-ua-reduced" & "sec-ch-ua-full" instances, a=testonly
Automatic update from web-platform-tests
Remove leftover "sec-ch-ua-reduced" & "sec-ch-ua-full" instances

These were part of the UA Reduction Origin and Deprecation Trials, which
have been removed for a few years now (since M116).

Bug: 463591207
Change-Id: I9ab7108ed74c673db433bf51e8707def38f63885
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7204098
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Mike Taylor <miketaylr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1550134}

--

wpt-commits: b7533a361ea4dc64e9144651730248218c1423a2
wpt-pr: 56282
2025-11-28 14:44:01 +00:00

37 lines
1.3 KiB
HTML

<!DOCTYPE html>
<title>Client hints in fenced frames test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="resources/utils.js"></script>
<script src="resources/client-hints-common.sub.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="/common/utils.js"></script>
<script src="/common/dispatcher/dispatcher.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<body>
<script>
promise_test(async () => {
const key = token();
const url = generateURL('resources/client-hints-inner.sub.https.html', [key]);
const remote_url = getRemoteOriginURL(url);
attachFencedFrame(remote_url);
const result = JSON.parse(await nextValueFromServer(key));
// We should not see client hints for the fenced frame root or subframes //
// within the fenced frame tree due to the reject-all permission policy used by
// fenced frames.
const headers = ['root-fenced-frame-headers', 'iframe-headers'];
const hints = [
'sec-ch-viewport-width', 'sec-ch-ua-mobile',
];
headers.forEach(header => {
hints.forEach(hint => {
assert_equals(result[header][hint], '');
});
});
}, 'fenced frames not send client hints');
</script>
</body>