Fix typo in CSP error message
The word |explicitly| was misspelt |explicitely| in a console error
message. Fix that.
Change-Id: Ia9740cba01eac1fda795f0ec7a35e166ad6cb1ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3632484
Commit-Queue: Eric Lawrence <ericlaw@microsoft.com>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1000767}
diff --git a/content/browser/content_security_policy_browsertest.cc b/content/browser/content_security_policy_browsertest.cc
index 03fe2590..a86e361 100644
--- a/content/browser/content_security_policy_browsertest.cc
+++ b/content/browser/content_security_policy_browsertest.cc
@@ -115,7 +115,8 @@
"Refused to frame '' because it violates the following Content Security "
"Policy directive: \"frame-src *\". Note that '*' matches only URLs with "
"network schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme "
- "matches `self`'s scheme. mailto:' must be added explicitely.\n");
+ "matches `self`'s scheme. The scheme 'mailto:' must be added "
+ "explicitly.\n");
EXPECT_TRUE(NavigateToURL(shell(), url));
console_observer.Wait();
}
@@ -136,7 +137,8 @@
"\"script-src *\". Note that 'script-src-elem' was not explicitly set, "
"so 'script-src' is used as a fallback. Note that '*' matches only URLs "
"with network schemes ('http', 'https', 'ws', 'wss'), or URLs whose "
- "scheme matches `self`'s scheme. mailto:' must be added explicitely.\n");
+ "scheme matches `self`'s scheme. The scheme 'mailto:' must be added "
+ "explicitly.\n");
EXPECT_TRUE(NavigateToURL(shell(), url));
console_observer.Wait();
}
diff --git a/services/network/public/cpp/content_security_policy/content_security_policy.cc b/services/network/public/cpp/content_security_policy/content_security_policy.cc
index 8cc7a856..4659636 100644
--- a/services/network/public/cpp/content_security_policy/content_security_policy.cc
+++ b/services/network/public/cpp/content_security_policy/content_security_policy.cc
@@ -233,8 +233,8 @@
if (policy->directives[effective_directive_name]->allow_star) {
message << " Note that '*' matches only URLs with network schemes ('http', "
"'https', 'ws', 'wss'), or URLs whose scheme matches `self`'s "
- "scheme. "
- << blocked_url_scheme << ":' must be added explicitely.";
+ "scheme. The scheme '"
+ << blocked_url_scheme << ":' must be added explicitly.";
}
message << "\n";
diff --git a/services/network/public/cpp/content_security_policy/csp_context_unittest.cc b/services/network/public/cpp/content_security_policy/csp_context_unittest.cc
index 9043c45..98671bc 100644
--- a/services/network/public/cpp/content_security_policy/csp_context_unittest.cc
+++ b/services/network/public/cpp/content_security_policy/csp_context_unittest.cc
@@ -352,7 +352,8 @@
"violates the following Content Security Policy directive: "
"\"frame-src *\". Note that '*' matches only URLs with network "
"schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme "
- "matches `self`'s scheme. data:' must be added explicitely.\n");
+ "matches `self`'s scheme. The scheme 'data:' must be added "
+ "explicitly.\n");
}
} // namespace network
diff --git a/third_party/blink/renderer/core/frame/csp/csp_directive_list.cc b/third_party/blink/renderer/core/frame/csp/csp_directive_list.cc
index a989dea..dbd38a0 100644
--- a/third_party/blink/renderer/core/frame/csp/csp_directive_list.cc
+++ b/third_party/blink/renderer/core/frame/csp/csp_directive_list.cc
@@ -614,8 +614,8 @@
suffix = suffix +
" Note that '*' matches only URLs with network schemes ('http', "
"'https', 'ws', 'wss'), or URLs whose scheme matches `self`'s "
- "scheme. " +
- url.Protocol() + ":' must be added explicitely.";
+ "scheme. The scheme '" +
+ url.Protocol() + ":' must be added explicitly.";
}
String raw_directive =