blob: aff73cfd5b526f76ede268669af11df308580e55 [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{
Stephen Chenneyebb056b2019-09-06 11:58:0223 "AvoidFlashBetweenNavigation", base::FEATURE_ENABLED_BY_DEFAULT};
Stephen Chenneyde6e5c82019-01-21 01:56:0424
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
Peter Kvitek197eaf72018-12-04 19:14:5631// Controls script streaming.
32const base::Feature kScriptStreaming{"ScriptStreaming",
33 base::FEATURE_ENABLED_BY_DEFAULT};
34
Leszek Swirskif75c1912019-05-29 10:08:2535// Allow streaming small (<30kB) scripts.
36const base::Feature kSmallScriptStreaming{"SmallScriptStreaming",
37 base::FEATURE_DISABLED_BY_DEFAULT};
38
Keishi Hattori9e106922019-04-15 09:06:0339// Enables user level memory pressure signal generation on Android.
40const base::Feature kUserLevelMemoryPressureSignal{
41 "UserLevelMemoryPressureSignal", base::FEATURE_DISABLED_BY_DEFAULT};
42
Aditya Keerthi6a933902019-03-14 21:09:2743// Perform memory purges after freezing only if all pages are frozen.
44const base::Feature kFreezePurgeMemoryAllPagesFrozen{
45 "FreezePurgeMemoryAllPagesFrozen", base::FEATURE_DISABLED_BY_DEFAULT};
46
John Delaneyac24e572019-04-30 19:47:0247// Freezes the user-agent as part of https://github.com/WICG/ua-client-hints.
48const base::Feature kFreezeUserAgent{"FreezeUserAgent",
49 base::FEATURE_DISABLED_BY_DEFAULT};
50
Mason Freedc166cf12019-06-14 19:04:2651// Enable a new CSS property called backdrop-filter.
Mason Freed34663f42019-09-06 22:40:0552const base::Feature kCSSBackdropFilter{"CSSBackdropFilter",
53 base::FEATURE_ENABLED_BY_DEFAULT};
Mason Freedc166cf12019-06-14 19:04:2654
Vladimir Levin43758ecc2019-05-09 18:04:0355// Enable Display Locking JavaScript APIs.
56const base::Feature kDisplayLocking{"DisplayLocking",
57 base::FEATURE_DISABLED_BY_DEFAULT};
58
Chris Harrelson6e41e3ae2019-05-03 23:09:4059// Enable applying rounded corner masks via a GL shader rather than
60// a mask layer.
Chris Harrelson3f7e36112019-08-21 19:15:4861const base::Feature kFastBorderRadius {
62 "FastBorderRadius",
Chris Harrelson3f7e36112019-08-21 19:15:4863 base::FEATURE_ENABLED_BY_DEFAULT
Chris Harrelson3f7e36112019-08-21 19:15:4864};
Chris Harrelson6e41e3ae2019-05-03 23:09:4065
Ian Kilpatricke68ef11a2018-07-04 03:52:1066// Enable LayoutNG.
Emil A Eklund69eeb562019-07-03 01:38:3067const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_ENABLED_BY_DEFAULT};
Ian Kilpatricke68ef11a2018-07-04 03:52:1068
Makoto Shimazu172eec02018-11-29 06:21:4469const base::Feature kMixedContentAutoupgrade{"AutoupgradeMixedContent",
70 base::FEATURE_DISABLED_BY_DEFAULT};
71
Tarun Bansal422f9012019-01-23 16:55:5872// Used to control the collection of anchor element metrics (crbug.com/856683).
73// If kNavigationPredictor is enabled, then metrics of anchor elements
74// in the first viewport after the page load and the metrics of the clicked
75// anchor element will be extracted and recorded. Additionally, navigation
76// predictor may preconnect/prefetch to resources/origins to make the
77// future navigations faster.
Sofiya Semenovae4e076152019-07-29 20:10:2778const base::Feature kNavigationPredictor {
79 "NavigationPredictor",
80#if defined(OS_ANDROID)
81 base::FEATURE_ENABLED_BY_DEFAULT
82#else
83 base::FEATURE_DISABLED_BY_DEFAULT
84#endif
85};
Tarun Bansal422f9012019-01-23 16:55:5886
Kenichi Ishibashi0b9b91b2019-08-29 01:01:0987// Start service workers on a background thread.
Kenichi Ishibashi27bdc952019-08-16 03:16:3088// https://crbug.com/692909
89const base::Feature kOffMainThreadServiceWorkerStartup{
Kenichi Ishibashi083ed482019-09-05 23:50:1590 "OffMainThreadServiceWorkerStartup", base::FEATURE_ENABLED_BY_DEFAULT};
Kenichi Ishibashi27bdc952019-08-16 03:16:3091
Hiroki Nakagawa61ee0042019-01-22 06:30:2692// Enable browser-initiated dedicated worker script loading
93// (PlzDedicatedWorker). https://crbug.com/906991
94const base::Feature kPlzDedicatedWorker{"PlzDedicatedWorker",
95 base::FEATURE_DISABLED_BY_DEFAULT};
96
Daniel Murphy95792ef2018-10-04 01:29:5597// Enable Portals. https://crbug.com/865123.
98const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT};
99
Tarun Bansal8df12b52019-02-15 05:46:30100// Enable limiting previews loading hints to specific resource types.
101const base::Feature kPreviewsResourceLoadingHintsSpecificResourceTypes{
102 "PreviewsResourceLoadingHintsSpecificResourceTypes",
103 base::FEATURE_DISABLED_BY_DEFAULT};
104
Aditya Keerthie84331b32019-03-20 15:25:52105// Perform a memory purge after a renderer is backgrounded. Formerly labelled as
106// the "PurgeAndSuspend" experiment.
107//
108// TODO(adityakeerthi): Disabled by default on Mac and Android for historical
109// reasons. Consider enabling by default if experiment results are positive.
110// https://crbug.com/926186
111const base::Feature kPurgeRendererMemoryWhenBackgrounded {
112 "PurgeRendererMemoryWhenBackgrounded",
113#if defined(OS_MACOSX) || defined(OS_ANDROID)
114 base::FEATURE_DISABLED_BY_DEFAULT
115#else
116 base::FEATURE_ENABLED_BY_DEFAULT
117#endif
118};
119
David Bokan911bded2018-11-27 23:23:32120// Enable Implicit Root Scroller. https://crbug.com/903260.
David Bokan145b5472019-05-22 14:38:44121// TODO(bokan): Temporarily disabled on desktop platforms to address issues
122// with non-overlay scrollbars. https://crbug.com/948059.
123const base::Feature kImplicitRootScroller {
124 "ImplicitRootScroller",
125#if defined(OS_ANDROID)
126 base::FEATURE_ENABLED_BY_DEFAULT
127#else
128 base::FEATURE_DISABLED_BY_DEFAULT
129#endif
130};
David Bokan911bded2018-11-27 23:23:32131
Cathie Cheneac70602019-10-10 02:55:29132// Enable CSSOM View Scroll Coordinates. https://crbug.com/721759.
133const base::Feature kCSSOMViewScrollCoordinates{
134 "CSSOMViewScrollCoordinates", base::FEATURE_DISABLED_BY_DEFAULT};
135
Makoto Shimazu172eec02018-11-29 06:21:44136// Enables usage of getDisplayMedia() that allows capture of web content, see
137// https://crbug.com/865060.
138const base::Feature kRTCGetDisplayMedia{"RTCGetDisplayMedia",
139 base::FEATURE_ENABLED_BY_DEFAULT};
140
141// Changes the default RTCPeerConnection constructor behavior to use Unified
142// Plan as the SDP semantics. When the feature is enabled, Unified Plan is used
143// unless the default is overridden (by passing {sdpSemantics:'plan-b'} as the
144// argument).
145const base::Feature kRTCUnifiedPlanByDefault{"RTCUnifiedPlanByDefault",
Henrik Boström07021ec82019-01-17 22:23:56146 base::FEATURE_ENABLED_BY_DEFAULT};
Makoto Shimazu172eec02018-11-29 06:21:44147
Johannes Kronad5a4532019-01-09 11:17:46148// Determines if the SDP attrbute extmap-allow-mixed should be offered by
149// default or not. The default value can be overridden by passing
150// {offerExtmapAllowMixed:true} as an argument to the RTCPeerConnection
151// constructor.
152const base::Feature kRTCOfferExtmapAllowMixed{
153 "RTCOfferExtmapAllowMixed", base::FEATURE_DISABLED_BY_DEFAULT};
154
Antonio Gomes76a8ec62019-09-03 23:20:17155// Enables HW VP8 encoding on Android.
156const base::Feature kWebRtcHWVP8Encoding {
157 "WebRtcHWVP8Encoding",
158#if defined(OS_ANDROID)
159 base::FEATURE_DISABLED_BY_DEFAULT
160#else
161 base::FEATURE_ENABLED_BY_DEFAULT
162#endif
163};
164
165// Enables HW VP9 encoding on Android.
166const base::Feature kWebRtcHWVP9Encoding {
167 "WebRtcHWVP9Encoding",
168#if defined(OS_ANDROID)
169 base::FEATURE_DISABLED_BY_DEFAULT
170#else
171 base::FEATURE_DISABLED_BY_DEFAULT
172#endif
173};
174
175// Enables HW H264 encoding on Android.
176const base::Feature kWebRtcHWH264Encoding{"WebRtcHWH264Encoding",
177 base::FEATURE_ENABLED_BY_DEFAULT};
178
Antonio Gomesb4718572019-09-11 02:55:48179// Enables negotiation of experimental multiplex codec in SDP.
180const base::Feature kWebRtcMultiplexCodec{"WebRTC-MultiplexCodec",
181 base::FEATURE_DISABLED_BY_DEFAULT};
182
183// Causes WebRTC to replace host ICE candidate IP addresses with generated
184// names ending in ".local" and resolve them using mDNS.
185// http://crbug.com/878465
186const base::Feature kWebRtcHideLocalIpsWithMdns{
187 "WebRtcHideLocalIpsWithMdns", base::FEATURE_ENABLED_BY_DEFAULT};
188
Antonio Gomesf3bcd512019-09-03 21:27:17189#if BUILDFLAG(RTC_USE_H264) && BUILDFLAG(ENABLE_FFMPEG_VIDEO_DECODERS)
190// Run-time feature for the |rtc_use_h264| encoder/decoder.
191const base::Feature kWebRtcH264WithOpenH264FFmpeg{
192 "WebRTC-H264WithOpenH264FFmpeg", base::FEATURE_ENABLED_BY_DEFAULT};
193#endif // BUILDFLAG(RTC_USE_H264) && BUILDFLAG(ENABLE_FFMPEG_VIDEO_DECODERS)
194
momohattfc352292018-08-29 05:12:36195const base::Feature kServiceWorkerImportedScriptUpdateCheck{
Makoto Shimazub9067eb02019-08-18 23:42:53196 "ServiceWorkerImportedScriptUpdateCheck", base::FEATURE_ENABLED_BY_DEFAULT};
momohattfc352292018-08-29 05:12:36197
Makoto Shimazua8b3d742019-04-05 06:55:51198// Experiment of the delay from navigation to starting an update of a service
199// worker's script.
200const base::Feature kServiceWorkerUpdateDelay{
201 "ServiceWorkerUpdateDelay", base::FEATURE_DISABLED_BY_DEFAULT};
202
Scott Haseley8eefdcd2018-08-22 16:50:19203// Freeze scheduler task queues in background after allowed grace time.
204// "stop" is a legacy name.
205const base::Feature kStopInBackground {
206 "stop-in-background",
207#if defined(OS_ANDROID)
208 base::FEATURE_ENABLED_BY_DEFAULT
209#else
210 base::FEATURE_DISABLED_BY_DEFAULT
211#endif
212};
213
Takashi Sakamotoc19fc2b2019-04-10 06:30:52214// Freeze scheduler task queues in background on network idle.
215// This feature only works if stop-in-background is enabled.
216const base::Feature kFreezeBackgroundTabOnNetworkIdle{
217 "freeze-background-tab-on-network-idle", base::FEATURE_DISABLED_BY_DEFAULT};
218
Shubhie Panicker60bd4b02018-09-26 00:02:15219// Freeze non-timer task queues in background, after allowed grace time.
220// "stop" is a legacy name.
Dave Tapuska9140c552019-05-30 16:18:56221const base::Feature kStopNonTimersInBackground{
222 "stop-non-timers-in-background", base::FEATURE_ENABLED_BY_DEFAULT};
Scott Haseley7757f6c2018-08-03 14:33:23223
Brandon Maslenda12cf82019-08-23 20:54:18224// Enable the Storage Access API. https://crbug.com/989663.
225const base::Feature kStorageAccessAPI{"StorageAccessAPI",
226 base::FEATURE_DISABLED_BY_DEFAULT};
227
David Bokane9370c22019-02-14 15:19:58228// Enable text snippets in URL fragments. https://crbug.com/919204.
229const base::Feature kTextFragmentAnchor{"TextFragmentAnchor",
230 base::FEATURE_DISABLED_BY_DEFAULT};
231
Bill Budge4d028f12018-11-20 15:05:12232// Enables the site isolated Wasm code cache that is keyed on the resource URL
233// and the origin lock of the renderer that is requesting the resource. When
234// this flag is enabled, content/GeneratedCodeCache handles code cache requests.
235const base::Feature kWasmCodeCache = {"WasmCodeCache",
236 base::FEATURE_DISABLED_BY_DEFAULT};
237
Marijn Kruisselbrinkca4bb5e2019-04-22 18:19:42238// Writable files and native file system access. https://crbug.com/853326
239const base::Feature kNativeFileSystemAPI{"NativeFileSystemAPI",
Marijn Kruisselbrink4cc3ec22019-09-04 16:28:20240 base::FEATURE_ENABLED_BY_DEFAULT};
Makoto Shimazu172eec02018-11-29 06:21:44241
Jay Harris583f48922019-05-06 05:55:24242// File handling integration. https://crbug.com/829689
243const base::Feature kFileHandlingAPI{"FileHandlingAPI",
244 base::FEATURE_DISABLED_BY_DEFAULT};
245
kdillon66bf5b522019-01-02 22:08:30246// Allows for synchronous XHR requests during page dismissal
Katie Dillon8b357312019-09-19 13:23:23247const base::Feature kAllowSyncXHRInPageDismissal{
248 "AllowSyncXHRInPageDismissal", base::FEATURE_DISABLED_BY_DEFAULT};
kdillon66bf5b522019-01-02 22:08:30249
Dominic Farolino780df942019-09-04 06:49:44250// Prefetch request properties are updated to be privacy-preserving. See
251// crbug.com/988956.
252const base::Feature kPrefetchPrivacyChanges{"PrefetchPrivacyChanges",
253 base::FEATURE_DISABLED_BY_DEFAULT};
Dominic Farolino693fd72d2019-08-05 11:09:44254
Carlos ILd3be52b2018-10-08 17:57:18255const char kMixedContentAutoupgradeModeParamName[] = "mode";
256const char kMixedContentAutoupgradeModeBlockable[] = "blockable";
257const char kMixedContentAutoupgradeModeOptionallyBlockable[] =
258 "optionally-blockable";
259
Sasha McIntoshe889f9f2019-09-03 21:01:57260// Decodes jpeg 4:2:0 formatted images to YUV instead of RGBX and stores in this
261// format in the image decode cache. See crbug.com/919627 for details on the
262// feature.
263const base::Feature kDecodeJpeg420ImagesToYUV{
264 "DecodeJpeg420ImagesToYUV", base::FEATURE_DISABLED_BY_DEFAULT};
265
Madeleine Barowsky45be21a42018-12-07 18:39:30266// Decodes lossy WebP images to YUV instead of RGBX and stores in this format
267// in the image decode cache. See crbug.com/900264 for details on the feature.
268const base::Feature kDecodeLossyWebPImagesToYUV{
269 "DecodeLossyWebPImagesToYUV", base::FEATURE_DISABLED_BY_DEFAULT};
270
Takashi Toyoshimaa91506d2019-03-28 05:44:42271// Enables cache-aware WebFonts loading. See https://crbug.com/570205.
272// The feature is disabled on Android for WebView API issue discussed at
273// https://crbug.com/942440.
274const base::Feature kWebFontsCacheAwareTimeoutAdaption {
275 "WebFontsCacheAwareTimeoutAdaption",
276#if defined(OS_ANDROID)
277 base::FEATURE_DISABLED_BY_DEFAULT
278#else
279 base::FEATURE_ENABLED_BY_DEFAULT
280#endif
281};
282
Ehsan Karamadbe95d122019-05-10 17:59:06283// Enabled to block programmatic focus in subframes when not triggered by user
284// activation (see htpps://crbug.com/954349).
285const base::Feature kBlockingFocusWithoutUserActivation{
286 "BlockingFocusWithoutUserActivation", base::FEATURE_DISABLED_BY_DEFAULT};
287
Hongchan Choi370d3af2019-05-20 20:56:58288const base::Feature kAudioWorkletRealtimeThread{
289 "AudioWorkletRealtimeThread", base::FEATURE_DISABLED_BY_DEFAULT};
290
Ryan Sturm139c3ac2019-07-12 18:52:53291// A feature to reduce the set of resources fetched by No-State Prefetch.
292const base::Feature kLightweightNoStatePrefetch{
Ryan Sturmf223cb02019-10-04 18:02:00293 "LightweightNoStatePrefetch",
294#if defined(OS_ANDROID)
295 base::FEATURE_ENABLED_BY_DEFAULT
296#else
297 base::FEATURE_DISABLED_BY_DEFAULT
298#endif
299};
Ryan Sturm139c3ac2019-07-12 18:52:53300
Aran Gilman5e9672bed2019-08-02 19:07:49301// Automatically convert light-themed pages to use a Blink-generated dark theme
302const base::Feature kForceWebContentsDarkMode{
303 "WebContentsForceDark", base::FEATURE_DISABLED_BY_DEFAULT};
304
305// Which algorithm should be used for color inversion?
306const base::FeatureParam<ForceDarkInversionMethod>::Option
307 forcedark_inversion_method_options[] = {
308 {ForceDarkInversionMethod::kUseBlinkSettings,
309 "use_blink_settings_for_method"},
310 {ForceDarkInversionMethod::kHslBased, "hsl_based"},
Aran Gilman8b3ca41c2019-08-12 18:59:04311 {ForceDarkInversionMethod::kCielabBased, "cielab_based"},
312 {ForceDarkInversionMethod::kRgbBased, "rgb_based"}};
Aran Gilman5e9672bed2019-08-02 19:07:49313
314const base::FeatureParam<ForceDarkInversionMethod>
315 kForceDarkInversionMethodParam{&kForceWebContentsDarkMode,
316 "inversion_method",
317 ForceDarkInversionMethod::kUseBlinkSettings,
318 &forcedark_inversion_method_options};
319
320// Should images be inverted?
321const base::FeatureParam<ForceDarkImageBehavior>::Option
322 forcedark_image_behavior_options[] = {
323 {ForceDarkImageBehavior::kUseBlinkSettings,
324 "use_blink_settings_for_images"},
325 {ForceDarkImageBehavior::kInvertNone, "none"},
326 {ForceDarkImageBehavior::kInvertSelectively, "selective"}};
327
328const base::FeatureParam<ForceDarkImageBehavior> kForceDarkImageBehaviorParam{
329 &kForceWebContentsDarkMode, "image_behavior",
330 ForceDarkImageBehavior::kUseBlinkSettings,
331 &forcedark_image_behavior_options};
332
333// Do not invert text lighter than this.
334// Range: 0 (do not invert any text) to 256 (invert all text)
335// Can also set to -1 to let Blink's internal settings control the value
336const base::FeatureParam<int> kForceDarkTextLightnessThresholdParam{
337 &kForceWebContentsDarkMode, "text_lightness_threshold", -1};
338
339// Do not invert backgrounds darker than this.
340// Range: 0 (invert all backgrounds) to 256 (invert no backgrounds)
341// Can also set to -1 to let Blink's internal settings control the value
342const base::FeatureParam<int> kForceDarkBackgroundLightnessThresholdParam{
343 &kForceWebContentsDarkMode, "background_lightness_threshold", -1};
344
Fernando Serboncinif3186162019-06-10 20:03:47345const base::Feature kCanvasAlwaysDeferral{"CanvasAlwaysDeferral",
346 base::FEATURE_ENABLED_BY_DEFAULT};
347
Michael Lippautze670df9f2019-07-09 11:39:49348// Blink garbage collection.
349// Enables compaction of backing stores on Blink's heap.
350const base::Feature kBlinkHeapCompaction{"BlinkHeapCompaction",
351 base::FEATURE_ENABLED_BY_DEFAULT};
352// Enables concurrently marking Blink's heap.
353const base::Feature kBlinkHeapConcurrentMarking{
354 "BlinkHeapConcurrentMarking", base::FEATURE_DISABLED_BY_DEFAULT};
Anton Bikineev9b7b3722019-07-09 13:48:39355// Enables concurrently sweeping Blink's heap.
356const base::Feature kBlinkHeapConcurrentSweeping{
Anton Bikineev204cc752019-08-07 00:26:37357 "BlinkHeapConcurrentSweeping", base::FEATURE_ENABLED_BY_DEFAULT};
Michael Lippautze670df9f2019-07-09 11:39:49358// Enables incrementally marking Blink's heap.
359const base::Feature kBlinkHeapIncrementalMarking{
360 "BlinkHeapIncrementalMarking", base::FEATURE_ENABLED_BY_DEFAULT};
361// Enables a marking stress mode that schedules more garbage collections and
362// also adds additional verification passes.
363const base::Feature kBlinkHeapIncrementalMarkingStress{
364 "BlinkHeapIncrementalMarkingStress", base::FEATURE_DISABLED_BY_DEFAULT};
Michael Lippautze670df9f2019-07-09 11:39:49365
Ben Kelly298d8e02019-07-10 17:37:49366// Enables a delay before BufferingBytesConsumer begins reading from its
367// underlying consumer when instantiated with CreateWithDelay().
368const base::Feature kBufferingBytesConsumerDelay{
Ben Kellyb97951a2019-08-05 19:59:51369 "BufferingBytesConsumerDelay", base::FEATURE_ENABLED_BY_DEFAULT};
Ben Kelly298d8e02019-07-10 17:37:49370const base::FeatureParam<int> kBufferingBytesConsumerDelayMilliseconds{
371 &kBufferingBytesConsumerDelay, "milliseconds", 50};
372
Yoav Weissddfb8d2e2019-07-15 22:34:03373// Enables removing AppCache delays when triggering requests when the HTML was
374// not fetched from AppCache.
375const base::Feature kVerifyHTMLFetchedFromAppCacheBeforeDelay{
376 "VerifyHTMLFetchedFromAppCacheBeforeDelay",
377 base::FEATURE_DISABLED_BY_DEFAULT};
378
Michael Spang8d2303e2019-07-26 01:56:32379// Controls whether we use ThreadPriority::DISPLAY for renderer
380// compositor & IO threads.
381const base::Feature kBlinkCompositorUseDisplayThreadPriority {
382 "BlinkCompositorUseDisplayThreadPriority",
383#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
384 base::FEATURE_ENABLED_BY_DEFAULT
385#else
386 base::FEATURE_DISABLED_BY_DEFAULT
387#endif
388};
389
Yuki Shiinoa812f492019-08-23 06:47:46390// Ignores cross origin windows in the named property interceptor of Window.
391// https://crbug.com/538562
392const base::Feature kIgnoreCrossOriginWindowWhenNamedAccessOnWindow{
393 "IgnoreCrossOriginWindowWhenNamedAccessOnWindow",
394 base::FEATURE_DISABLED_BY_DEFAULT};
395
Tarun Bansal38792462019-09-04 16:08:11396// When enabled, loading priority of JavaScript requests is lowered when they
397// are force deferred by the intervention.
398const base::Feature kLowerJavaScriptPriorityWhenForceDeferred{
399 "LowerJavaScriptPriorityWhenForceDeferred",
400 base::FEATURE_ENABLED_BY_DEFAULT};
401
Hiroshige Hayashizaki8ee3f7e62019-09-05 07:17:47402const base::Feature kHtmlImportsRequestInitiatorLock{
Yutaka Hiranofe5510cf2019-10-08 07:30:33403 "HtmlImportsRequestInitiatorLock", base::FEATURE_DISABLED_BY_DEFAULT};
Hiroshige Hayashizaki8ee3f7e62019-09-05 07:17:47404
Matt Falkenhagen5cc652792018-06-21 10:34:33405} // namespace features
406} // namespace blink