blob: b1590bddebfddfd82195414617766a35e1e5bb15 [file] [log] [blame]
Matt Falkenhagen5cc652792018-06-21 10:34:331// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "third_party/blink/public/common/features.h"
6
Aran Gilman5e9672bed2019-08-02 19:07:497#include "base/feature_list.h"
Scott Haseley8eefdcd2018-08-22 16:50:198#include "build/build_config.h"
Hiroki Nakagawa893ee502019-02-04 06:49:539#include "services/network/public/cpp/features.h"
Aran Gilman5e9672bed2019-08-02 19:07:4910#include "third_party/blink/public/common/forcedark/forcedark_switches.h"
Scott Haseley8eefdcd2018-08-22 16:50:1911
Matt Falkenhagen5cc652792018-06-21 10:34:3312namespace blink {
13namespace features {
14
Yao Xiao2c1171a2019-04-01 23:44:3215// Enable intervention for download that was initiated from or occurred in an ad
16// frame without user activation.
17const base::Feature kBlockingDownloadsInAdFrameWithoutUserActivation{
18 "BlockingDownloadsInAdFrameWithoutUserActivation",
Yao Xiao3f9e4272019-05-23 15:22:4619 base::FEATURE_ENABLED_BY_DEFAULT};
Yao Xiao2c1171a2019-04-01 23:44:3220
Stephen Chenneyde6e5c82019-01-21 01:56:0421// Enable defer commits a bit to avoid flash.
22const base::Feature kAvoidFlashBetweenNavigation{
23 "AvoidFlashBetweenNavigation", base::FEATURE_DISABLED_BY_DEFAULT};
24
Matt Falkenhagenc25fea42018-07-17 07:13:5225// Enable eagerly setting up a CacheStorage interface pointer and
26// passing it to service workers on startup as an optimization.
27const base::Feature kEagerCacheStorageSetupForServiceWorkers{
28 "EagerCacheStorageSetupForServiceWorkers",
29 base::FEATURE_ENABLED_BY_DEFAULT};
30
Eric Karl0623ec72018-10-30 19:43:2631// Controls the user-specified viewport restriction for GPU Rasterization on
32// mobile. See https://crbug.com/899399
33const base::Feature kEnableGpuRasterizationViewportRestriction{
34 "EnableGpuRasterizationViewportRestriction",
Eric Karl35944642019-07-17 23:58:2435 base::FEATURE_DISABLED_BY_DEFAULT};
Eric Karl0623ec72018-10-30 19:43:2636
Peter Kvitek197eaf72018-12-04 19:14:5637// Controls script streaming.
38const base::Feature kScriptStreaming{"ScriptStreaming",
39 base::FEATURE_ENABLED_BY_DEFAULT};
40
Leszek Swirskif75c1912019-05-29 10:08:2541// Allow streaming small (<30kB) scripts.
42const base::Feature kSmallScriptStreaming{"SmallScriptStreaming",
43 base::FEATURE_DISABLED_BY_DEFAULT};
44
Keishi Hattori9e106922019-04-15 09:06:0345// Enables user level memory pressure signal generation on Android.
46const base::Feature kUserLevelMemoryPressureSignal{
47 "UserLevelMemoryPressureSignal", base::FEATURE_DISABLED_BY_DEFAULT};
48
Liquan(Max) Gu4e243fc2018-11-17 00:13:0249// Enable FCP++ by experiment. See https://crbug.com/869924
50const base::Feature kFirstContentfulPaintPlusPlus{
Liquan(Max) Gu739af152019-06-07 19:27:1951 "FirstContentfulPaintPlusPlus", base::FEATURE_ENABLED_BY_DEFAULT};
Liquan(Max) Gu4e243fc2018-11-17 00:13:0252
Aditya Keerthi6a933902019-03-14 21:09:2753// Perform memory purges after freezing only if all pages are frozen.
54const base::Feature kFreezePurgeMemoryAllPagesFrozen{
55 "FreezePurgeMemoryAllPagesFrozen", base::FEATURE_DISABLED_BY_DEFAULT};
56
John Delaneyac24e572019-04-30 19:47:0257// Freezes the user-agent as part of https://github.com/WICG/ua-client-hints.
58const base::Feature kFreezeUserAgent{"FreezeUserAgent",
59 base::FEATURE_DISABLED_BY_DEFAULT};
60
Steve Kobesb51c2fed2019-02-27 15:36:3161// Enables the experimental sweep-line algorithm for tracking "jank" from
62// layout objects changing their visual location between animation frames.
Steve Kobesaa9c7c22019-01-21 18:24:1363const base::Feature kJankTrackingSweepLine{"JankTrackingSweepLine",
64 base::FEATURE_DISABLED_BY_DEFAULT};
65
Mason Freedc166cf12019-06-14 19:04:2666// Enable a new CSS property called backdrop-filter.
Mason Freed9a96b502019-08-29 18:28:4167const base::Feature kCSSBackdropFilter {
68 "CSSBackdropFilter",
69#if defined(OS_ANDROID)
70 // There are two bugs in the backdrop-filter feature for Android Webview
71 // only (crbug.com/990535 and crbug.com/991869). Because there is no
72 // compile-time flag for Webview, this disables all of Android, and the
73 // feature will be re-enabled for non-Webview Android by Finch.
74 base::FEATURE_DISABLED_BY_DEFAULT
75#else
76 base::FEATURE_ENABLED_BY_DEFAULT
77#endif
78};
Mason Freedc166cf12019-06-14 19:04:2679
Vladimir Levin43758ecc2019-05-09 18:04:0380// Enable Display Locking JavaScript APIs.
81const base::Feature kDisplayLocking{"DisplayLocking",
82 base::FEATURE_DISABLED_BY_DEFAULT};
83
Chris Harrelson6e41e3ae2019-05-03 23:09:4084// Enable applying rounded corner masks via a GL shader rather than
85// a mask layer.
Chris Harrelson3f7e36112019-08-21 19:15:4886const base::Feature kFastBorderRadius {
87 "FastBorderRadius",
88#if defined(OS_MACOSX)
89 // A FastBorderRadiusMac experiment is rolling out separately for that
90 // platform, due to complications with CALayer overlay optimizations.
91 base::FEATURE_DISABLED_BY_DEFAULT
92#else
93 base::FEATURE_ENABLED_BY_DEFAULT
94#endif
95};
Chris Harrelson6e41e3ae2019-05-03 23:09:4096
Ian Kilpatricke68ef11a2018-07-04 03:52:1097// Enable LayoutNG.
Emil A Eklund69eeb562019-07-03 01:38:3098const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_ENABLED_BY_DEFAULT};
Ian Kilpatricke68ef11a2018-07-04 03:52:1099
Makoto Shimazu172eec02018-11-29 06:21:44100const base::Feature kMixedContentAutoupgrade{"AutoupgradeMixedContent",
101 base::FEATURE_DISABLED_BY_DEFAULT};
102
Tarun Bansal422f9012019-01-23 16:55:58103// Used to control the collection of anchor element metrics (crbug.com/856683).
104// If kNavigationPredictor is enabled, then metrics of anchor elements
105// in the first viewport after the page load and the metrics of the clicked
106// anchor element will be extracted and recorded. Additionally, navigation
107// predictor may preconnect/prefetch to resources/origins to make the
108// future navigations faster.
Sofiya Semenovae4e076152019-07-29 20:10:27109const base::Feature kNavigationPredictor {
110 "NavigationPredictor",
111#if defined(OS_ANDROID)
112 base::FEATURE_ENABLED_BY_DEFAULT
113#else
114 base::FEATURE_DISABLED_BY_DEFAULT
115#endif
116};
Tarun Bansal422f9012019-01-23 16:55:58117
Kenichi Ishibashi0b9b91b2019-08-29 01:01:09118// Start service workers on a background thread.
Kenichi Ishibashi27bdc952019-08-16 03:16:30119// https://crbug.com/692909
120const base::Feature kOffMainThreadServiceWorkerStartup{
121 "OffMainThreadServiceWorkerStartup", base::FEATURE_DISABLED_BY_DEFAULT};
122
Hiroki Nakagawa61ee0042019-01-22 06:30:26123// Enable browser-initiated dedicated worker script loading
124// (PlzDedicatedWorker). https://crbug.com/906991
125const base::Feature kPlzDedicatedWorker{"PlzDedicatedWorker",
126 base::FEATURE_DISABLED_BY_DEFAULT};
127
Daniel Murphy95792ef2018-10-04 01:29:55128// Enable Portals. https://crbug.com/865123.
129const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT};
130
Tarun Bansal8df12b52019-02-15 05:46:30131// Enable limiting previews loading hints to specific resource types.
132const base::Feature kPreviewsResourceLoadingHintsSpecificResourceTypes{
133 "PreviewsResourceLoadingHintsSpecificResourceTypes",
134 base::FEATURE_DISABLED_BY_DEFAULT};
135
Aditya Keerthie84331b32019-03-20 15:25:52136// Perform a memory purge after a renderer is backgrounded. Formerly labelled as
137// the "PurgeAndSuspend" experiment.
138//
139// TODO(adityakeerthi): Disabled by default on Mac and Android for historical
140// reasons. Consider enabling by default if experiment results are positive.
141// https://crbug.com/926186
142const base::Feature kPurgeRendererMemoryWhenBackgrounded {
143 "PurgeRendererMemoryWhenBackgrounded",
144#if defined(OS_MACOSX) || defined(OS_ANDROID)
145 base::FEATURE_DISABLED_BY_DEFAULT
146#else
147 base::FEATURE_ENABLED_BY_DEFAULT
148#endif
149};
150
David Bokan911bded2018-11-27 23:23:32151// Enable Implicit Root Scroller. https://crbug.com/903260.
David Bokan145b5472019-05-22 14:38:44152// TODO(bokan): Temporarily disabled on desktop platforms to address issues
153// with non-overlay scrollbars. https://crbug.com/948059.
154const base::Feature kImplicitRootScroller {
155 "ImplicitRootScroller",
156#if defined(OS_ANDROID)
157 base::FEATURE_ENABLED_BY_DEFAULT
158#else
159 base::FEATURE_DISABLED_BY_DEFAULT
160#endif
161};
David Bokan911bded2018-11-27 23:23:32162
Makoto Shimazu172eec02018-11-29 06:21:44163// Enables usage of getDisplayMedia() that allows capture of web content, see
164// https://crbug.com/865060.
165const base::Feature kRTCGetDisplayMedia{"RTCGetDisplayMedia",
166 base::FEATURE_ENABLED_BY_DEFAULT};
167
168// Changes the default RTCPeerConnection constructor behavior to use Unified
169// Plan as the SDP semantics. When the feature is enabled, Unified Plan is used
170// unless the default is overridden (by passing {sdpSemantics:'plan-b'} as the
171// argument).
172const base::Feature kRTCUnifiedPlanByDefault{"RTCUnifiedPlanByDefault",
Henrik Boström07021ec82019-01-17 22:23:56173 base::FEATURE_ENABLED_BY_DEFAULT};
Makoto Shimazu172eec02018-11-29 06:21:44174
Johannes Kronad5a4532019-01-09 11:17:46175// Determines if the SDP attrbute extmap-allow-mixed should be offered by
176// default or not. The default value can be overridden by passing
177// {offerExtmapAllowMixed:true} as an argument to the RTCPeerConnection
178// constructor.
179const base::Feature kRTCOfferExtmapAllowMixed{
180 "RTCOfferExtmapAllowMixed", base::FEATURE_DISABLED_BY_DEFAULT};
181
Ben Kelly24e20aa2019-04-25 21:27:16182const base::Feature kServiceWorkerIsolateInForeground{
Ben Kellyb27f17e82019-06-26 05:31:41183 "ServiceWorkerIsolateInForeground", base::FEATURE_ENABLED_BY_DEFAULT};
Ben Kelly24e20aa2019-04-25 21:27:16184
momohattfc352292018-08-29 05:12:36185const base::Feature kServiceWorkerImportedScriptUpdateCheck{
Makoto Shimazub9067eb02019-08-18 23:42:53186 "ServiceWorkerImportedScriptUpdateCheck", base::FEATURE_ENABLED_BY_DEFAULT};
momohattfc352292018-08-29 05:12:36187
Kenichi Ishibashi42f883d2019-01-11 08:26:14188const base::Feature kServiceWorkerAggressiveCodeCache{
189 "ServiceWorkerAggressiveCodeCache", base::FEATURE_DISABLED_BY_DEFAULT};
190
Makoto Shimazua8b3d742019-04-05 06:55:51191// Experiment of the delay from navigation to starting an update of a service
192// worker's script.
193const base::Feature kServiceWorkerUpdateDelay{
194 "ServiceWorkerUpdateDelay", base::FEATURE_DISABLED_BY_DEFAULT};
195
Scott Haseley8eefdcd2018-08-22 16:50:19196// Freeze scheduler task queues in background after allowed grace time.
197// "stop" is a legacy name.
198const base::Feature kStopInBackground {
199 "stop-in-background",
200#if defined(OS_ANDROID)
201 base::FEATURE_ENABLED_BY_DEFAULT
202#else
203 base::FEATURE_DISABLED_BY_DEFAULT
204#endif
205};
206
Takashi Sakamotoc19fc2b2019-04-10 06:30:52207// Freeze scheduler task queues in background on network idle.
208// This feature only works if stop-in-background is enabled.
209const base::Feature kFreezeBackgroundTabOnNetworkIdle{
210 "freeze-background-tab-on-network-idle", base::FEATURE_DISABLED_BY_DEFAULT};
211
Shubhie Panicker60bd4b02018-09-26 00:02:15212// Freeze non-timer task queues in background, after allowed grace time.
213// "stop" is a legacy name.
Dave Tapuska9140c552019-05-30 16:18:56214const base::Feature kStopNonTimersInBackground{
215 "stop-non-timers-in-background", base::FEATURE_ENABLED_BY_DEFAULT};
Scott Haseley7757f6c2018-08-03 14:33:23216
Brandon Maslenda12cf82019-08-23 20:54:18217// Enable the Storage Access API. https://crbug.com/989663.
218const base::Feature kStorageAccessAPI{"StorageAccessAPI",
219 base::FEATURE_DISABLED_BY_DEFAULT};
220
David Bokane9370c22019-02-14 15:19:58221// Enable text snippets in URL fragments. https://crbug.com/919204.
222const base::Feature kTextFragmentAnchor{"TextFragmentAnchor",
223 base::FEATURE_DISABLED_BY_DEFAULT};
224
Bill Budge4d028f12018-11-20 15:05:12225// Enables the site isolated Wasm code cache that is keyed on the resource URL
226// and the origin lock of the renderer that is requesting the resource. When
227// this flag is enabled, content/GeneratedCodeCache handles code cache requests.
228const base::Feature kWasmCodeCache = {"WasmCodeCache",
229 base::FEATURE_DISABLED_BY_DEFAULT};
230
Marijn Kruisselbrinkca4bb5e2019-04-22 18:19:42231// Writable files and native file system access. https://crbug.com/853326
232const base::Feature kNativeFileSystemAPI{"NativeFileSystemAPI",
Marijn Kruisselbrinkfa0e1052019-03-05 22:32:55233 base::FEATURE_DISABLED_BY_DEFAULT};
Makoto Shimazu172eec02018-11-29 06:21:44234
Jay Harris583f48922019-05-06 05:55:24235// File handling integration. https://crbug.com/829689
236const base::Feature kFileHandlingAPI{"FileHandlingAPI",
237 base::FEATURE_DISABLED_BY_DEFAULT};
238
kdillon66bf5b522019-01-02 22:08:30239// Allows for synchronous XHR requests during page dismissal
240const base::Feature kForbidSyncXHRInPageDismissal{
Katie Dillon54c1ad222019-04-18 23:49:52241 "ForbidSyncXHRInPageDismissal", base::FEATURE_DISABLED_BY_DEFAULT};
kdillon66bf5b522019-01-02 22:08:30242
Dominic Farolino693fd72d2019-08-05 11:09:44243// Forces the redirect mode for prefetches to kManual. See crbug.com/988956.
244const base::Feature kPrefetchRedirectError{"PrefetchRedirectError",
245 base::FEATURE_DISABLED_BY_DEFAULT};
246
Carlos ILd3be52b2018-10-08 17:57:18247const char kMixedContentAutoupgradeModeParamName[] = "mode";
248const char kMixedContentAutoupgradeModeBlockable[] = "blockable";
249const char kMixedContentAutoupgradeModeOptionallyBlockable[] =
250 "optionally-blockable";
251
Sasha McIntoshe889f9f2019-09-03 21:01:57252// Decodes jpeg 4:2:0 formatted images to YUV instead of RGBX and stores in this
253// format in the image decode cache. See crbug.com/919627 for details on the
254// feature.
255const base::Feature kDecodeJpeg420ImagesToYUV{
256 "DecodeJpeg420ImagesToYUV", base::FEATURE_DISABLED_BY_DEFAULT};
257
Madeleine Barowsky45be21a42018-12-07 18:39:30258// Decodes lossy WebP images to YUV instead of RGBX and stores in this format
259// in the image decode cache. See crbug.com/900264 for details on the feature.
260const base::Feature kDecodeLossyWebPImagesToYUV{
261 "DecodeLossyWebPImagesToYUV", base::FEATURE_DISABLED_BY_DEFAULT};
262
Tarun Bansale4ad3472019-07-09 03:59:28263// Enables usage of render frame observer as the receiver of the resource
264// loading hints in the render process.
265// https://crbug.com/891328.
266const base::Feature kSendPreviewsLoadingHintsBeforeCommit{
267 "SendPreviewsLoadingHintsBeforeCommit", base::FEATURE_ENABLED_BY_DEFAULT};
268
Takashi Toyoshimaa91506d2019-03-28 05:44:42269// Enables cache-aware WebFonts loading. See https://crbug.com/570205.
270// The feature is disabled on Android for WebView API issue discussed at
271// https://crbug.com/942440.
272const base::Feature kWebFontsCacheAwareTimeoutAdaption {
273 "WebFontsCacheAwareTimeoutAdaption",
274#if defined(OS_ANDROID)
275 base::FEATURE_DISABLED_BY_DEFAULT
276#else
277 base::FEATURE_ENABLED_BY_DEFAULT
278#endif
279};
280
Ehsan Karamadbe95d122019-05-10 17:59:06281// Enabled to block programmatic focus in subframes when not triggered by user
282// activation (see htpps://crbug.com/954349).
283const base::Feature kBlockingFocusWithoutUserActivation{
284 "BlockingFocusWithoutUserActivation", base::FEATURE_DISABLED_BY_DEFAULT};
285
Hongchan Choi370d3af2019-05-20 20:56:58286const base::Feature kAudioWorkletRealtimeThread{
287 "AudioWorkletRealtimeThread", base::FEATURE_DISABLED_BY_DEFAULT};
288
Ryan Sturm139c3ac2019-07-12 18:52:53289// A feature to reduce the set of resources fetched by No-State Prefetch.
290const base::Feature kLightweightNoStatePrefetch{
Ryan Sturm37bcbec2019-07-26 12:53:08291 "LightweightNoStatePrefetch", base::FEATURE_DISABLED_BY_DEFAULT};
Ryan Sturm139c3ac2019-07-12 18:52:53292
Daniel Libby7da24b72019-05-22 05:46:35293// Use scroll gestures for scrollbar scrolls (see https://crbug.com/954007).
294const base::Feature kScrollbarInjectScrollGestures{
Daniel Libby97b44752019-05-31 23:00:07295 "ScrollbarInjectScrollGestures", base::FEATURE_ENABLED_BY_DEFAULT};
Daniel Libby7da24b72019-05-22 05:46:35296
Aran Gilman5e9672bed2019-08-02 19:07:49297// Automatically convert light-themed pages to use a Blink-generated dark theme
298const base::Feature kForceWebContentsDarkMode{
299 "WebContentsForceDark", base::FEATURE_DISABLED_BY_DEFAULT};
300
301// Which algorithm should be used for color inversion?
302const base::FeatureParam<ForceDarkInversionMethod>::Option
303 forcedark_inversion_method_options[] = {
304 {ForceDarkInversionMethod::kUseBlinkSettings,
305 "use_blink_settings_for_method"},
306 {ForceDarkInversionMethod::kHslBased, "hsl_based"},
Aran Gilman8b3ca41c2019-08-12 18:59:04307 {ForceDarkInversionMethod::kCielabBased, "cielab_based"},
308 {ForceDarkInversionMethod::kRgbBased, "rgb_based"}};
Aran Gilman5e9672bed2019-08-02 19:07:49309
310const base::FeatureParam<ForceDarkInversionMethod>
311 kForceDarkInversionMethodParam{&kForceWebContentsDarkMode,
312 "inversion_method",
313 ForceDarkInversionMethod::kUseBlinkSettings,
314 &forcedark_inversion_method_options};
315
316// Should images be inverted?
317const base::FeatureParam<ForceDarkImageBehavior>::Option
318 forcedark_image_behavior_options[] = {
319 {ForceDarkImageBehavior::kUseBlinkSettings,
320 "use_blink_settings_for_images"},
321 {ForceDarkImageBehavior::kInvertNone, "none"},
322 {ForceDarkImageBehavior::kInvertSelectively, "selective"}};
323
324const base::FeatureParam<ForceDarkImageBehavior> kForceDarkImageBehaviorParam{
325 &kForceWebContentsDarkMode, "image_behavior",
326 ForceDarkImageBehavior::kUseBlinkSettings,
327 &forcedark_image_behavior_options};
328
329// Do not invert text lighter than this.
330// Range: 0 (do not invert any text) to 256 (invert all text)
331// Can also set to -1 to let Blink's internal settings control the value
332const base::FeatureParam<int> kForceDarkTextLightnessThresholdParam{
333 &kForceWebContentsDarkMode, "text_lightness_threshold", -1};
334
335// Do not invert backgrounds darker than this.
336// Range: 0 (invert all backgrounds) to 256 (invert no backgrounds)
337// Can also set to -1 to let Blink's internal settings control the value
338const base::FeatureParam<int> kForceDarkBackgroundLightnessThresholdParam{
339 &kForceWebContentsDarkMode, "background_lightness_threshold", -1};
340
Fernando Serboncinif3186162019-06-10 20:03:47341const base::Feature kCanvasAlwaysDeferral{"CanvasAlwaysDeferral",
342 base::FEATURE_ENABLED_BY_DEFAULT};
343
Adam Rice8e55e802019-06-24 11:58:03344// Use the new C++ implementation of WHATWG Streams. See
345// https://crbug.com/977500.
346const base::Feature kStreamsNative{"StreamsNative",
Adam Rice3c4fc7b2019-08-15 08:51:13347 base::FEATURE_ENABLED_BY_DEFAULT};
Adam Rice8e55e802019-06-24 11:58:03348
Michael Lippautze670df9f2019-07-09 11:39:49349// Blink garbage collection.
350// Enables compaction of backing stores on Blink's heap.
351const base::Feature kBlinkHeapCompaction{"BlinkHeapCompaction",
352 base::FEATURE_ENABLED_BY_DEFAULT};
353// Enables concurrently marking Blink's heap.
354const base::Feature kBlinkHeapConcurrentMarking{
355 "BlinkHeapConcurrentMarking", base::FEATURE_DISABLED_BY_DEFAULT};
Anton Bikineev9b7b3722019-07-09 13:48:39356// Enables concurrently sweeping Blink's heap.
357const base::Feature kBlinkHeapConcurrentSweeping{
Anton Bikineev204cc752019-08-07 00:26:37358 "BlinkHeapConcurrentSweeping", base::FEATURE_ENABLED_BY_DEFAULT};
Michael Lippautze670df9f2019-07-09 11:39:49359// Enables incrementally marking Blink's heap.
360const base::Feature kBlinkHeapIncrementalMarking{
361 "BlinkHeapIncrementalMarking", base::FEATURE_ENABLED_BY_DEFAULT};
362// Enables a marking stress mode that schedules more garbage collections and
363// also adds additional verification passes.
364const base::Feature kBlinkHeapIncrementalMarkingStress{
365 "BlinkHeapIncrementalMarkingStress", base::FEATURE_DISABLED_BY_DEFAULT};
366// Enables unified heap garbage collection scheduling where scheduling is
367// delegated to V8's heap controller.
368const base::Feature kBlinkHeapUnifiedGCScheduling{
369 "BlinkHeapUnifiedGCScheduling", base::FEATURE_ENABLED_BY_DEFAULT};
370
Ben Kelly298d8e02019-07-10 17:37:49371// Enables a delay before BufferingBytesConsumer begins reading from its
372// underlying consumer when instantiated with CreateWithDelay().
373const base::Feature kBufferingBytesConsumerDelay{
Ben Kellyb97951a2019-08-05 19:59:51374 "BufferingBytesConsumerDelay", base::FEATURE_ENABLED_BY_DEFAULT};
Ben Kelly298d8e02019-07-10 17:37:49375const base::FeatureParam<int> kBufferingBytesConsumerDelayMilliseconds{
376 &kBufferingBytesConsumerDelay, "milliseconds", 50};
377
Yoav Weissddfb8d2e2019-07-15 22:34:03378// Enables removing AppCache delays when triggering requests when the HTML was
379// not fetched from AppCache.
380const base::Feature kVerifyHTMLFetchedFromAppCacheBeforeDelay{
381 "VerifyHTMLFetchedFromAppCacheBeforeDelay",
382 base::FEATURE_DISABLED_BY_DEFAULT};
383
Michael Spang8d2303e2019-07-26 01:56:32384// Controls whether we use ThreadPriority::DISPLAY for renderer
385// compositor & IO threads.
386const base::Feature kBlinkCompositorUseDisplayThreadPriority {
387 "BlinkCompositorUseDisplayThreadPriority",
388#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
389 base::FEATURE_ENABLED_BY_DEFAULT
390#else
391 base::FEATURE_DISABLED_BY_DEFAULT
392#endif
393};
394
Yuki Shiinoa812f492019-08-23 06:47:46395// Ignores cross origin windows in the named property interceptor of Window.
396// https://crbug.com/538562
397const base::Feature kIgnoreCrossOriginWindowWhenNamedAccessOnWindow{
398 "IgnoreCrossOriginWindowWhenNamedAccessOnWindow",
399 base::FEATURE_DISABLED_BY_DEFAULT};
400
Matt Falkenhagen5cc652792018-06-21 10:34:33401} // namespace features
402} // namespace blink