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: content/public/common/content_features.cc

Issue 2125683002: Add option to force document level passive event listeners as a runtime feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update value Created 4 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
Index: content/public/common/content_features.cc
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index 1b6ff90cd759d67960a63f8246d2a2acf365e3b9..6b5d6a42f223a629a1330247d7d6b812b6e7dccf 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -92,6 +92,10 @@ const base::Feature kPaintOptimizations{"PaintOptimizations",
const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread",
base::FEATURE_DISABLED_BY_DEFAULT};
+// Whether document level event listeners should default 'passive' to true.
+const base::Feature kPassiveDocumentEventListeners{
+ "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT};
+
// Partial support for pointer event feature.
const base::Feature kPointerEvents{"PointerEvent",
base::FEATURE_DISABLED_BY_DEFAULT};

Powered by Google App Engine
This is Rietveld 408576698