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