Commit 056e52a
[WPT/referrer-policy] Use unsafe-url as "another policy"
Previously, `no-referrer` was used as the Document's referrer policy
that shouldn't be used.
But using the Document's referrer policy unexpectedly didn't cause
test failures, because
web-platform-tests/wpt#29434 made
the tests to allow UA-specific policies more strict than expected,
and using `no-referrer` is always allowed.
This CL uses `unsafe-url` instead as long as possible, to make
tests fail if the policy is used unexpectedly.
`unsafe-url` is likely to result in less strict referrers that
aren't allowed as UA-specific policies.
Bug: 1235205, web-platform-tests/wpt#29434
Change-Id: I7e9aa4f5e5fbd4d8ff5a984f6647845ae0d0e2f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3123715
Reviewed-by: Emily Stark <estark@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/main@{#918861}1 parent b721f0a commit 056e52a
File tree
361 files changed
+373
-361
lines changed- third_party/blink/web_tests/external/wpt
- common/security-features/tools
- referrer-policy/gen
- iframe.http-rp
- no-referrer-when-downgrade
- origin-when-cross-origin
- origin
- same-origin
- strict-origin-when-cross-origin
- strict-origin
- unset
- iframe.meta
- always
- default
- never
- no-referrer-when-downgrade
- origin-when-cross-origin
- origin-when-crossorigin
- origin
- same-origin
- strict-origin-when-cross-origin
- strict-origin
- unset
- req.attr
- no-referrer-when-downgrade
- origin-when-cross-origin
- origin
- same-origin
- strict-origin-when-cross-origin
- strict-origin
- srcdoc.meta
- always
- default
- never
- no-referrer-when-downgrade
- origin-when-cross-origin
- origin-when-crossorigin
- origin
- same-origin
- strict-origin-when-cross-origin
- strict-origin
- worker-classic.http-rp
- no-referrer-when-downgrade
- origin-when-cross-origin
- origin
- same-origin
- strict-origin-when-cross-origin
- strict-origin
- unset
- worker-module.http-rp
- no-referrer-when-downgrade
- origin-when-cross-origin
- origin
- same-origin
- strict-origin-when-cross-origin
- strict-origin
- unset
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
361 files changed
+373
-361
lines changedLines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
153 | 165 | | |
154 | 166 | | |
155 | 167 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments