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

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

Issue 1383483007: Add scheme exceptions for isSecureContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Update comment 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/SchemeRegistry.h
diff --git a/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h b/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h
index bfc464e119c5b626ba0b0188c66210c2c921faf7..f9533f6f15026d3518cc70571f6a679d76a6dd5e 100644
--- a/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h
+++ b/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h
@@ -114,6 +114,11 @@ public:
static void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme);
static bool schemeShouldBypassContentSecurityPolicy(const String& scheme, PolicyAreas = PolicyAreaAll);
+ // Schemes which bypass Secure Context checks defined in
+ // https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustworthy.
+ static void registerURLSchemeBypassingSecureContextCheck(const String& scheme);
+ static bool schemeShouldBypassSecureContextCheck(const String& scheme);
+
private:
static const URLSchemesSet& localSchemes();
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698