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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp

Issue 2679383003: Share schemes needed for CSP between the browser and the renderer. (Closed)
Patch Set: Rebase and fix conflict. Created 3 years, 10 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/Source/platform/weborigin/SchemeRegistry.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp b/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
index 6f9b0c874d65ffd94d0e3f14318db5ae8261ebc6..5fc77fc2607aec95e1f3626145ca1ebe889e8bd9 100644
--- a/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp
@@ -54,6 +54,10 @@ class URLSchemesRegistry final {
schemesWithUniqueOrigins.insert(scheme.c_str());
for (auto& scheme : url::GetCORSEnabledSchemes())
CORSEnabledSchemes.insert(scheme.c_str());
+ for (auto& scheme : url::GetCSPBypassingSchemes()) {
+ contentSecurityPolicyBypassingSchemes.insert(
+ scheme.c_str(), SchemeRegistry::PolicyAreaAll);
+ }
}
~URLSchemesRegistry() = default;
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h ('k') | third_party/WebKit/Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698