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

Unified Diff: Source/web/WebSecurityPolicy.cpp

Issue 1082173003: Support whitelisting to handle insecure origins as trustworthy origins (blink) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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: Source/web/WebSecurityPolicy.cpp
diff --git a/Source/web/WebSecurityPolicy.cpp b/Source/web/WebSecurityPolicy.cpp
index 83c240fc3ed4db242d2345fa181c52f010fee34b..ad40f901fa59cc510839b4d1d44a1f2395a2427e 100644
--- a/Source/web/WebSecurityPolicy.cpp
+++ b/Source/web/WebSecurityPolicy.cpp
@@ -117,6 +117,11 @@ void WebSecurityPolicy::resetOriginAccessWhitelists()
SecurityPolicy::resetOriginAccessWhitelists();
}
+void WebSecurityPolicy::addOriginTrustworthyWhiteList(const WebURL& origin)
+{
+ SecurityPolicy::addOriginTrustworthyWhiteList(*SecurityOrigin::create(origin));
+}
+
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