Skip to content

Commit

Permalink
[Remove FeaturePolicyForClientHints] (3) Cleanup webtests
Browse files Browse the repository at this point in the history
This is the final component: cleaning up web/browser tests that use
lifetime despite it not doing anything for quite some time now.

This CL is a part of a series:
(1) Remove Flags
(2) Remove lifetime argument
(3) Cleanup webtests

Bug: 1243060
Change-Id: I151a32263012aa716471a4b6250e24da16c526e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3311659
Commit-Queue: Ari Chivukula <[email protected]>
Auto-Submit: Ari Chivukula <[email protected]>
Reviewed-by: Yoav Weiss <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Cr-Commit-Position: refs/heads/main@{#947254}
  • Loading branch information
arichiv authored and pull[bot] committed Dec 22, 2023
1 parent cbe30fa commit 1400902
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions client-hints/accept-ch-feature-policy-navigation.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
"sec-ch-device-memory=true&device-memory=true&sec-ch-dpr=false&dpr=false&sec-ch-viewport-width=true&viewport-width=true&sec-ch-ua=true&sec-ch-ua-mobile=false",
"",
"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",
"sec-ch-device-memory=true&device-memory=true&sec-ch-dpr=false&dpr=false&sec-ch-viewport-width=false&viewport-width=false&sec-ch-ua=false&sec-ch-ua-mobile=false",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Accept-CH: Sec-CH-Device-Memory, Device-Memory, Sec-CH-DPR, DPR, Sec-CH-Viewport-Width, Viewport-Width
Accept-CH-Lifetime: 100
Feature-Policy: ch-device-memory *; ch-dpr 'none'; ch-viewport-width 'self'; ch-ua 'self'; ch-ua-mobile 'none'; ch-prefers-color-scheme 'none'
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Accept-CH: Sec-CH-Device-Memory, Device-Memory, Sec-CH-DPR, DPR, Sec-CH-Viewport-Width, Viewport-Width
Accept-CH-Lifetime: 100
3 changes: 0 additions & 3 deletions client-hints/resources/iframe-accept-ch-lifetime.html

This file was deleted.

4 changes: 0 additions & 4 deletions client-hints/resources/iframe-accept-ch-lifetime.html.headers

This file was deleted.

0 comments on commit 1400902

Please sign in to comment.