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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityPolicy.h

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/platform/weborigin/SecurityPolicy.h
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.h b/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.h
index e7cc7de1431ccff5caef025a0a69a91f2c6d1f75..4cb5f06a7e2eff17874d8f0b18b97f0d96d3e940 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.h
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.h
@@ -65,6 +65,12 @@ public:
static void addOriginTrustworthyWhiteList(PassRefPtr<SecurityOrigin>);
static bool isOriginWhiteListedTrustworthy(const SecurityOrigin&);
+ static void addSchemeToBypassSecureContextWhitelist(const String&);
+ // Returns true if the origin is on a whitelist of origins that should
+ // bypass Secure Context checks defined in
+ // https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustworthy.
+ static bool shouldOriginBypassSecureContextCheck(const SecurityOrigin&);
+
static bool referrerPolicyFromString(const String& policy, ReferrerPolicy* result);
};

Powered by Google App Engine
This is Rietveld 408576698