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

Unified Diff: content/public/common/content_features.cc

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Re-block data to data navigations, rebase, address nasko comments Created 3 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: content/public/common/content_features.cc
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index c1ccf0d87d5ceeb569a69fe126d8edfbb38cb6d1..d6f16c010df2019f03446062e4719f8256296636 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -16,6 +16,12 @@ const base::Feature kAccessibilityObjectModel(
"AccessibilityObjectModel",
base::FEATURE_DISABLED_BY_DEFAULT);
+// Enables content-initiated, main-frame navigations to data URLs.
+// TODO(meacer): Remove when the deprecation is complete.
+// https://www.chromestatus.com/feature/5669602927312896
+const base::Feature kAllowInsecureDataUrlNavigations{
+ "AllowInsecureDataUrlNavigations", base::FEATURE_DISABLED_BY_DEFAULT};
nasko 2017/04/05 23:55:19 Technically, content-initiated is a bit better ter
meacer 2017/04/06 01:25:42 I wanted to name the flag insecure to discourage p
+
// Enables asm.js to WebAssembly V8 backend.
// http://asmjs.org/spec/latest/
const base::Feature kAsmJsToWebAssembly{"AsmJsToWebAssembly",

Powered by Google App Engine
This is Rietveld 408576698