Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js

Issue 2892903002: Renamed `embedding-csp` HTTP request header to `required-csp`. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js
index c5f07e9bd458c55ab6542beb5f85972582a73544..bd7f255616e14feeff095d94fe145afdb3f64df3 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js
@@ -6,7 +6,7 @@ const Host = {
const PolicyHeader = {
CSP: "echo-policy.py?policy=",
CSP_MULTIPLE: "echo-policy-multiple.py",
- EMBEDDING_CSP: "echo-embedding-csp.py",
+ REQUIRED_CSP: "echo-required-csp.py",
ALLOW_CSP_FROM: "echo-allow-csp-from.py",
};
@@ -68,16 +68,16 @@ function generateUrlWithAllowCSPFrom(host, allowCspFrom) {
return url;
}
-function assert_embedding_csp(t, url, csp, expected) {
+function assert_required_csp(t, url, csp, expected) {
var i = document.createElement('iframe');
if(csp)
i.csp = csp;
i.src = url;
window.addEventListener('message', t.step_func(e => {
- if (e.source != i.contentWindow || !('embedding_csp' in e.data))
+ if (e.source != i.contentWindow || !('required_csp' in e.data))
return;
- assert_equals(expected, e.data['embedding_csp']);
+ assert_equals(expected, e.data['required_csp']);
t.done();
}));

Powered by Google App Engine
This is Rietveld 408576698