Commit 7affece
Reland "[Connection-Allowlist] Enforce for speculation rules prerender"
This is a reland of commit 68d975aadb2878c61da2ed0174be429fe19cebd0
The test fails on Android builder because on Android feature
IsPrerender2FallbackPrefetchSpecRulesEnabled is disabled. There is no
prefetch ahead of the prerender. So the prerender request is made and
gets blocked by the connection allowlist. Its error code should be
UNSAFE_REDIRECT instead of ERR_ABORTED, which is the error code for
feature enabled case.
Original change's description:
> [Connection-Allowlist] Enforce for speculation rules prerender
>
> - The prerendering navigation request already correctly sets the
> initiator frame token. The Connection Allowlist(CA) check in navigation
> request enforces according to the initiator frame's CA.
> - Add browser test and WPT.
> - Add browser test for kPrerender2FallbackPrefetchSpecRules feature.
> When enabled, a fallback prefetch request is created for speculation
> rules prerender. The fallback prefetch is also checked by CA.
>
> About CA: https://github.com/WICG/connection-allowlists
>
> Bug: 447954811, 492462315
> Change-Id: I3f14f25d03c9d72eec5a652246769b6e4be36cae
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7886514
> Reviewed-by: Andrew Verge <averge@chromium.org>
> Commit-Queue: Xiaochen Zhou <xiaochenzh@chromium.org>
> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
> Reviewed-by: Lingqi Chi <lingqi@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1642470}
Bug: 447954811, 492462315, 521162817
Cq-Include-Trybots: luci.chromium.try:android-14-arm64-rel,android-arm64-rel
Change-Id: I14fd7db06338ff4cee0a58e045e6404d9e0e83d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7907724
Reviewed-by: Andrew Verge <averge@chromium.org>
Commit-Queue: Xiaochen Zhou <xiaochenzh@chromium.org>
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1643883}1 parent 404d622 commit 7affece
2 files changed
Lines changed: 58 additions & 0 deletions
File tree
- connection-allowlist/tentative
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments