From 4ec8cb88ca8735aada4e6be7721f5ed65241c0f2 Mon Sep 17 00:00:00 2001 From: Jonathan Hao Date: Wed, 27 Dec 2023 08:06:42 -0800 Subject: [PATCH] [CSP] Regression WPT for nonce hiding on dangling html/body See bug or https://crrev.com/c/5149755 Bug: 1513216 Change-Id: Ie04e0d900e8d49ffd99fc60579f50cbd460cad2a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5148217 Commit-Queue: Jonathan Hao Commit-Queue: Yifan Luo Reviewed-by: Yifan Luo Auto-Submit: Jonathan Hao Cr-Commit-Position: refs/heads/main@{#1241168} --- .../nonce-hiding/dangling-html-or-body.html | 29 +++++++++++++++++++ .../dangling-html-or-body.html.headers | 1 + 2 files changed, 30 insertions(+) create mode 100644 content-security-policy/nonce-hiding/dangling-html-or-body.html create mode 100644 content-security-policy/nonce-hiding/dangling-html-or-body.html.headers diff --git a/content-security-policy/nonce-hiding/dangling-html-or-body.html b/content-security-policy/nonce-hiding/dangling-html-or-body.html new file mode 100644 index 00000000000000..4ba65e05b885cb --- /dev/null +++ b/content-security-policy/nonce-hiding/dangling-html-or-body.html @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + diff --git a/content-security-policy/nonce-hiding/dangling-html-or-body.html.headers b/content-security-policy/nonce-hiding/dangling-html-or-body.html.headers new file mode 100644 index 00000000000000..67d4c81e589d48 --- /dev/null +++ b/content-security-policy/nonce-hiding/dangling-html-or-body.html.headers @@ -0,0 +1 @@ +Content-Security-Policy: script-src 'nonce-secret'