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

Unified Diff: third_party/WebKit/Source/web/WebSecurityPolicy.cpp

Issue 1383483007: Add scheme exceptions for isSecureContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Update comment Created 5 years, 2 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/web/WebSecurityPolicy.cpp
diff --git a/third_party/WebKit/Source/web/WebSecurityPolicy.cpp b/third_party/WebKit/Source/web/WebSecurityPolicy.cpp
index 2f2b5d388e3b6c5330f0e4f38ab53741181a41b4..8482b97eae051935854d32dc39e45ace7cb6783f 100644
--- a/third_party/WebKit/Source/web/WebSecurityPolicy.cpp
+++ b/third_party/WebKit/Source/web/WebSecurityPolicy.cpp
@@ -138,6 +138,11 @@ void WebSecurityPolicy::addOriginTrustworthyWhiteList(const WebSecurityOrigin& o
SecurityPolicy::addOriginTrustworthyWhiteList(origin);
}
+void WebSecurityPolicy::addSchemeToBypassSecureContextWhitelist(const WebString& scheme)
+{
+ SchemeRegistry::registerURLSchemeBypassingSecureContextCheck(scheme);
+}
+
WebString WebSecurityPolicy::generateReferrerHeader(WebReferrerPolicy referrerPolicy, const WebURL& url, const WebString& referrer)
{
return SecurityPolicy::generateReferrer(static_cast<ReferrerPolicy>(referrerPolicy), url, referrer).referrer;
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SchemeRegistryTest.cpp ('k') | third_party/WebKit/public/web/WebSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698