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

Unified Diff: third_party/WebKit/public/web/WebSecurityPolicy.h

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/public/web/WebSecurityPolicy.h
diff --git a/third_party/WebKit/public/web/WebSecurityPolicy.h b/third_party/WebKit/public/web/WebSecurityPolicy.h
index 8e190aa4971a984ef9482177512e4709247ad05f..fbe011d98c078ef45a177747ad69603e3fadc290 100644
--- a/third_party/WebKit/public/web/WebSecurityPolicy.h
+++ b/third_party/WebKit/public/web/WebSecurityPolicy.h
@@ -113,6 +113,9 @@ public:
// Support for whitelisting origins to treat them as trustworthy.
BLINK_EXPORT static void addOriginTrustworthyWhiteList(const WebSecurityOrigin&);
+ // Support for whitelisting schemes as bypassing secure context checks.
+ BLINK_EXPORT static void addSchemeToBypassSecureContextWhitelist(const WebString&);
+
// Returns the referrer modified according to the referrer policy for a
// navigation to a given URL. If the referrer returned is empty, the
// referrer header should be omitted.

Powered by Google App Engine
This is Rietveld 408576698