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

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: Fixes 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;

Powered by Google App Engine
This is Rietveld 408576698