mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Automatic update from web-platform-tests [client hints] Apply Feature Policy on 3rd party iframe navigations Feature Policy control over Client Hints in 3rd party contexts currently only works (behind a flag) for subresources. This CL applies that control also over 3rd party iframe navigation requests. On top of that, in order to make this testable with WPTs, this CL also adds a ContentShell persistency layer for Client Hints. Bug: 989898 Binary-Size: Virtual ForTesting method Change-Id: I17ce2af93c9b2f9a3f10972b6b4e0ed8161f9381 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1728577 Reviewed-by: Jochen Eisinger <[email protected]> Reviewed-by: Mike West <[email protected]> Reviewed-by: Colin Blundell <[email protected]> Reviewed-by: Arthur Sonzogni <[email protected]> Reviewed-by: Peter Kasting <[email protected]> Reviewed-by: Andrey Kosyakov <[email protected]> Reviewed-by: Tarun Bansal <[email protected]> Commit-Queue: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/master@{#713469} -- wpt-commits: 1b3a4aab3fd1394633678f2056148127257121b3 wpt-pr: 19464
34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
<html>
|
|
<body>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/common/get-host-info.sub.js"></script>
|
|
<script src="resources/feature-policy-navigation.js"></script>
|
|
<script>
|
|
(async () => {
|
|
await test_frame(
|
|
"HTTPS_REMOTE_ORIGIN",
|
|
"device-memory=true&dpr=false&viewport-width=false",
|
|
"",
|
|
"Client hints loaded on cross-origin iframe request with feature policy.");
|
|
await test_frame(
|
|
"HTTPS_ORIGIN",
|
|
"device-memory=true&dpr=false&viewport-width=true",
|
|
"",
|
|
"Client hints loaded on same-origin iframe request with feature policy.");
|
|
await test_frame(
|
|
"HTTPS_REMOTE_ORIGIN",
|
|
"",
|
|
"",
|
|
"Iframe trying to set Accept-CH-Lifetime.", "/client-hints/resources/iframe-accept-ch-lifetime.html");
|
|
await test_frame(
|
|
"HTTPS_REMOTE_ORIGIN",
|
|
"device-memory=true&dpr=false&viewport-width=false",
|
|
"",
|
|
"Client hints loaded on cross-origin iframe request with feature policy after attempting to set independently.");
|
|
})();
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|