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

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

Issue 389053003: Always report access control failure if accessing unsupported URL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Include supported schemes in console error message Created 6 years, 5 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
« no previous file with comments | « Source/core/loader/DocumentThreadableLoader.cpp ('k') | Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/weborigin/SchemeRegistry.h
diff --git a/Source/platform/weborigin/SchemeRegistry.h b/Source/platform/weborigin/SchemeRegistry.h
index ed8011ea9dde5802a0bf9c15fb7c94773ece2a01..680e31e41a7dd19c7d354da2f5e666c980a2f0e1 100644
--- a/Source/platform/weborigin/SchemeRegistry.h
+++ b/Source/platform/weborigin/SchemeRegistry.h
@@ -78,6 +78,9 @@ public:
static void registerURLSchemeAsCORSEnabled(const String& scheme);
static bool shouldTreatURLSchemeAsCORSEnabled(const String& scheme);
+ // Serialize the registered schemes in a comma-separated list.
+ static String listOfCORSEnabledURLSchemes();
tyoshino (SeeGerritForStatus) 2014/07/14 07:14:01 [optional] start with a verb? buildListOf...
sof 2014/07/14 08:20:41 thanks, will wait on abarth's feedback before rena
abarth-chromium 2014/07/14 16:51:51 Using a noun phrase is fine. We're not instructin
+
// Allow resources from some schemes to load on a page, regardless of its
// Content Security Policy.
static void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme);
« no previous file with comments | « Source/core/loader/DocumentThreadableLoader.cpp ('k') | Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698