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

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 check for sandbox 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..3960bb32cc7e2e6d5743c483465622e093e1e4fa 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)
+{
+ SecurityPolicy::addSchemeToBypassSecureContextWhitelist(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