Matt Falkenhagen | 5cc65279 | 2018-06-21 10:34:33 | [diff] [blame] | 1 | // 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 | |
Scott Haseley | 8eefdcd | 2018-08-22 16:50:19 | [diff] [blame] | 7 | #include "build/build_config.h" |
Hiroki Nakagawa | 893ee50 | 2019-02-04 06:49:53 | [diff] [blame] | 8 | #include "services/network/public/cpp/features.h" |
Scott Haseley | 8eefdcd | 2018-08-22 16:50:19 | [diff] [blame] | 9 | |
Matt Falkenhagen | 5cc65279 | 2018-06-21 10:34:33 | [diff] [blame] | 10 | namespace blink { |
| 11 | namespace features { |
| 12 | |
Yao Xiao | 2c1171a | 2019-04-01 23:44:32 | [diff] [blame] | 13 | // Enable intervention for download that was initiated from or occurred in an ad |
| 14 | // frame without user activation. |
| 15 | const base::Feature kBlockingDownloadsInAdFrameWithoutUserActivation{ |
| 16 | "BlockingDownloadsInAdFrameWithoutUserActivation", |
| 17 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 18 | |
Stephen Chenney | de6e5c8 | 2019-01-21 01:56:04 | [diff] [blame] | 19 | // Enable defer commits a bit to avoid flash. |
| 20 | const base::Feature kAvoidFlashBetweenNavigation{ |
| 21 | "AvoidFlashBetweenNavigation", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 22 | |
Matt Falkenhagen | c25fea4 | 2018-07-17 07:13:52 | [diff] [blame] | 23 | // Enable eagerly setting up a CacheStorage interface pointer and |
| 24 | // passing it to service workers on startup as an optimization. |
| 25 | const base::Feature kEagerCacheStorageSetupForServiceWorkers{ |
| 26 | "EagerCacheStorageSetupForServiceWorkers", |
| 27 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 28 | |
Eric Karl | 0623ec7 | 2018-10-30 19:43:26 | [diff] [blame] | 29 | // Controls the user-specified viewport restriction for GPU Rasterization on |
| 30 | // mobile. See https://crbug.com/899399 |
| 31 | const base::Feature kEnableGpuRasterizationViewportRestriction{ |
| 32 | "EnableGpuRasterizationViewportRestriction", |
| 33 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 34 | |
Peter Kvitek | 197eaf7 | 2018-12-04 19:14:56 | [diff] [blame] | 35 | // Controls script streaming. |
| 36 | const base::Feature kScriptStreaming{"ScriptStreaming", |
| 37 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 38 | |
Keishi Hattori | 9e10692 | 2019-04-15 09:06:03 | [diff] [blame^] | 39 | // Enables user level memory pressure signal generation on Android. |
| 40 | const base::Feature kUserLevelMemoryPressureSignal{ |
| 41 | "UserLevelMemoryPressureSignal", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 42 | |
Liquan(Max) Gu | 4e243fc | 2018-11-17 00:13:02 | [diff] [blame] | 43 | // Enable FCP++ by experiment. See https://crbug.com/869924 |
| 44 | const base::Feature kFirstContentfulPaintPlusPlus{ |
| 45 | "FirstContentfulPaintPlusPlus", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 46 | |
Aditya Keerthi | 6a93390 | 2019-03-14 21:09:27 | [diff] [blame] | 47 | // Perform memory purges after freezing only if all pages are frozen. |
| 48 | const base::Feature kFreezePurgeMemoryAllPagesFrozen{ |
| 49 | "FreezePurgeMemoryAllPagesFrozen", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 50 | |
Aditya Keerthi | 8e3c483 | 2019-03-28 14:50:36 | [diff] [blame] | 51 | // Controls whether or not the font cache is invalidated when a critical memory |
| 52 | // pressure signal is sent. |
| 53 | const base::Feature kInvalidateFontCacheOnPurge{ |
| 54 | "InvalidateFontCacheOnPurge", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 55 | |
Steve Kobes | b51c2fed | 2019-02-27 15:36:31 | [diff] [blame] | 56 | // Enables the experimental sweep-line algorithm for tracking "jank" from |
| 57 | // layout objects changing their visual location between animation frames. |
Steve Kobes | aa9c7c2 | 2019-01-21 18:24:13 | [diff] [blame] | 58 | const base::Feature kJankTrackingSweepLine{"JankTrackingSweepLine", |
| 59 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 60 | |
Philip Rogers | 6348133 | 2018-12-01 22:16:51 | [diff] [blame] | 61 | // Enable a new compositing mode called BlinkGenPropertyTrees where Blink |
| 62 | // generates the compositor property trees. See: https://crbug.com/836884. |
| 63 | const base::Feature kBlinkGenPropertyTrees{"BlinkGenPropertyTrees", |
Philip Rogers | 3010556c | 2019-03-12 20:53:22 | [diff] [blame] | 64 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Philip Rogers | 6348133 | 2018-12-01 22:16:51 | [diff] [blame] | 65 | |
Ian Kilpatrick | e68ef11a | 2018-07-04 03:52:10 | [diff] [blame] | 66 | // Enable LayoutNG. |
| 67 | const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 68 | |
Makoto Shimazu | 172eec0 | 2018-11-29 06:21:44 | [diff] [blame] | 69 | const base::Feature kMixedContentAutoupgrade{"AutoupgradeMixedContent", |
| 70 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 71 | |
Marijn Kruisselbrink | cde6463 | 2018-06-22 22:45:16 | [diff] [blame] | 72 | // Enable mojo Blob URL interface and better blob URL lifetime management. |
| 73 | // Can be enabled independently of NetworkService. |
| 74 | const base::Feature kMojoBlobURLs{"MojoBlobURLs", |
| 75 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 76 | |
Tarun Bansal | 422f901 | 2019-01-23 16:55:58 | [diff] [blame] | 77 | // Used to control the collection of anchor element metrics (crbug.com/856683). |
| 78 | // If kNavigationPredictor is enabled, then metrics of anchor elements |
| 79 | // in the first viewport after the page load and the metrics of the clicked |
| 80 | // anchor element will be extracted and recorded. Additionally, navigation |
| 81 | // predictor may preconnect/prefetch to resources/origins to make the |
| 82 | // future navigations faster. |
| 83 | const base::Feature kNavigationPredictor{"NavigationPredictor", |
| 84 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 85 | |
Hiroki Nakagawa | df83a6f | 2019-01-28 06:07:46 | [diff] [blame] | 86 | // Enable off-the-main-thread dedicated worker script fetch. |
| 87 | // (https://crbug.com/835717) |
| 88 | const base::Feature kOffMainThreadDedicatedWorkerScriptFetch{ |
| 89 | "OffMainThreadDedicatedWorkerScriptFetch", |
| 90 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 91 | |
Kenichi Ishibashi | 5aa265a9 | 2019-02-28 07:01:45 | [diff] [blame] | 92 | // Enable off-the-main-thread service worker script fetch. |
| 93 | // (https://crbug.com/924043) |
| 94 | const base::Feature kOffMainThreadServiceWorkerScriptFetch{ |
| 95 | "OffMainThreadServiceWorkerScriptFetch", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 96 | |
Hiroki Nakagawa | 893ee50 | 2019-02-04 06:49:53 | [diff] [blame] | 97 | // Enable off-the-main-thread shared worker script fetch. |
| 98 | // (https://crbug.com/924041) |
| 99 | const base::Feature kOffMainThreadSharedWorkerScriptFetch{ |
| 100 | "OffMainThreadSharedWorkerScriptFetch", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 101 | |
Daniel Murphy | 80ce302 | 2018-10-18 07:28:07 | [diff] [blame] | 102 | // Onion souping for all DOMStorage. https://crbug.com/781870 |
Daniel Murphy | 95792ef | 2018-10-04 01:29:55 | [diff] [blame] | 103 | const base::Feature kOnionSoupDOMStorage{"OnionSoupDOMStorage", |
Daniel Murphy | dc4aa5a7 | 2019-02-07 22:08:47 | [diff] [blame] | 104 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Daniel Murphy | 95792ef | 2018-10-04 01:29:55 | [diff] [blame] | 105 | |
Hiroki Nakagawa | 61ee004 | 2019-01-22 06:30:26 | [diff] [blame] | 106 | // Enable browser-initiated dedicated worker script loading |
| 107 | // (PlzDedicatedWorker). https://crbug.com/906991 |
| 108 | const base::Feature kPlzDedicatedWorker{"PlzDedicatedWorker", |
| 109 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 110 | |
Daniel Murphy | 95792ef | 2018-10-04 01:29:55 | [diff] [blame] | 111 | // Enable Portals. https://crbug.com/865123. |
| 112 | const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 113 | |
Tarun Bansal | 8df12b5 | 2019-02-15 05:46:30 | [diff] [blame] | 114 | // Enable limiting previews loading hints to specific resource types. |
| 115 | const base::Feature kPreviewsResourceLoadingHintsSpecificResourceTypes{ |
| 116 | "PreviewsResourceLoadingHintsSpecificResourceTypes", |
| 117 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 118 | |
Aditya Keerthi | e84331b3 | 2019-03-20 15:25:52 | [diff] [blame] | 119 | // Perform a memory purge after a renderer is backgrounded. Formerly labelled as |
| 120 | // the "PurgeAndSuspend" experiment. |
| 121 | // |
| 122 | // TODO(adityakeerthi): Disabled by default on Mac and Android for historical |
| 123 | // reasons. Consider enabling by default if experiment results are positive. |
| 124 | // https://crbug.com/926186 |
| 125 | const base::Feature kPurgeRendererMemoryWhenBackgrounded { |
| 126 | "PurgeRendererMemoryWhenBackgrounded", |
| 127 | #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 128 | base::FEATURE_DISABLED_BY_DEFAULT |
| 129 | #else |
| 130 | base::FEATURE_ENABLED_BY_DEFAULT |
| 131 | #endif |
| 132 | }; |
| 133 | |
David Bokan | 911bded | 2018-11-27 23:23:32 | [diff] [blame] | 134 | // Enable Implicit Root Scroller. https://crbug.com/903260. |
| 135 | const base::Feature kImplicitRootScroller{"ImplicitRootScroller", |
David Bokan | 5173a50 | 2019-01-11 22:06:48 | [diff] [blame] | 136 | base::FEATURE_ENABLED_BY_DEFAULT}; |
David Bokan | 911bded | 2018-11-27 23:23:32 | [diff] [blame] | 137 | |
Makoto Shimazu | 172eec0 | 2018-11-29 06:21:44 | [diff] [blame] | 138 | // Enables usage of getDisplayMedia() that allows capture of web content, see |
| 139 | // https://crbug.com/865060. |
| 140 | const base::Feature kRTCGetDisplayMedia{"RTCGetDisplayMedia", |
| 141 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 142 | |
| 143 | // Changes the default RTCPeerConnection constructor behavior to use Unified |
| 144 | // Plan as the SDP semantics. When the feature is enabled, Unified Plan is used |
| 145 | // unless the default is overridden (by passing {sdpSemantics:'plan-b'} as the |
| 146 | // argument). |
| 147 | const base::Feature kRTCUnifiedPlanByDefault{"RTCUnifiedPlanByDefault", |
Henrik Boström | 07021ec8 | 2019-01-17 22:23:56 | [diff] [blame] | 148 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Makoto Shimazu | 172eec0 | 2018-11-29 06:21:44 | [diff] [blame] | 149 | |
Johannes Kron | ad5a453 | 2019-01-09 11:17:46 | [diff] [blame] | 150 | // Determines if the SDP attrbute extmap-allow-mixed should be offered by |
| 151 | // default or not. The default value can be overridden by passing |
| 152 | // {offerExtmapAllowMixed:true} as an argument to the RTCPeerConnection |
| 153 | // constructor. |
| 154 | const base::Feature kRTCOfferExtmapAllowMixed{ |
| 155 | "RTCOfferExtmapAllowMixed", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 156 | |
momohatt | fc35229 | 2018-08-29 05:12:36 | [diff] [blame] | 157 | const base::Feature kServiceWorkerImportedScriptUpdateCheck{ |
| 158 | "ServiceWorkerImportedScriptUpdateCheck", |
| 159 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 160 | |
Ben Kelly | e20dc40 | 2018-09-18 01:55:42 | [diff] [blame] | 161 | // Enables reading a subresource's body data and side data in parallel. |
| 162 | const base::Feature kServiceWorkerParallelSideDataReading{ |
| 163 | "ServiceWorkerParallelSideDataReading", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 164 | |
Kenichi Ishibashi | 42f883d | 2019-01-11 08:26:14 | [diff] [blame] | 165 | const base::Feature kServiceWorkerAggressiveCodeCache{ |
| 166 | "ServiceWorkerAggressiveCodeCache", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 167 | |
Makoto Shimazu | a8b3d74 | 2019-04-05 06:55:51 | [diff] [blame] | 168 | // Experiment of the delay from navigation to starting an update of a service |
| 169 | // worker's script. |
| 170 | const base::Feature kServiceWorkerUpdateDelay{ |
| 171 | "ServiceWorkerUpdateDelay", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 172 | |
Scott Haseley | 8eefdcd | 2018-08-22 16:50:19 | [diff] [blame] | 173 | // Freeze scheduler task queues in background after allowed grace time. |
| 174 | // "stop" is a legacy name. |
| 175 | const base::Feature kStopInBackground { |
| 176 | "stop-in-background", |
| 177 | #if defined(OS_ANDROID) |
| 178 | base::FEATURE_ENABLED_BY_DEFAULT |
| 179 | #else |
| 180 | base::FEATURE_DISABLED_BY_DEFAULT |
| 181 | #endif |
| 182 | }; |
| 183 | |
Takashi Sakamoto | c19fc2b | 2019-04-10 06:30:52 | [diff] [blame] | 184 | // Freeze scheduler task queues in background on network idle. |
| 185 | // This feature only works if stop-in-background is enabled. |
| 186 | const base::Feature kFreezeBackgroundTabOnNetworkIdle{ |
| 187 | "freeze-background-tab-on-network-idle", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 188 | |
Shubhie Panicker | 60bd4b0 | 2018-09-26 00:02:15 | [diff] [blame] | 189 | // Freeze non-timer task queues in background, after allowed grace time. |
| 190 | // "stop" is a legacy name. |
| 191 | const base::Feature kStopNonTimersInBackground { |
| 192 | "stop-non-timers-in-background", |
| 193 | #if defined(OS_ANDROID) |
| 194 | base::FEATURE_ENABLED_BY_DEFAULT |
| 195 | #else |
| 196 | base::FEATURE_DISABLED_BY_DEFAULT |
| 197 | #endif |
| 198 | }; |
Scott Haseley | 7757f6c | 2018-08-03 14:33:23 | [diff] [blame] | 199 | |
David Bokan | e9370c2 | 2019-02-14 15:19:58 | [diff] [blame] | 200 | // Enable text snippets in URL fragments. https://crbug.com/919204. |
| 201 | const base::Feature kTextFragmentAnchor{"TextFragmentAnchor", |
| 202 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 203 | |
Bill Budge | 4d028f1 | 2018-11-20 15:05:12 | [diff] [blame] | 204 | // Enables the site isolated Wasm code cache that is keyed on the resource URL |
| 205 | // and the origin lock of the renderer that is requesting the resource. When |
| 206 | // this flag is enabled, content/GeneratedCodeCache handles code cache requests. |
| 207 | const base::Feature kWasmCodeCache = {"WasmCodeCache", |
| 208 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 209 | |
Makoto Shimazu | 172eec0 | 2018-11-29 06:21:44 | [diff] [blame] | 210 | // Writable files and native filesystem access. https://crbug.com/853326 |
Marijn Kruisselbrink | fa0e105 | 2019-03-05 22:32:55 | [diff] [blame] | 211 | const base::Feature kNativeFilesystemAPI{"NativeFilesystemAPI", |
| 212 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Makoto Shimazu | 172eec0 | 2018-11-29 06:21:44 | [diff] [blame] | 213 | |
kdillon | 66bf5b52 | 2019-01-02 22:08:30 | [diff] [blame] | 214 | // Allows for synchronous XHR requests during page dismissal |
| 215 | const base::Feature kForbidSyncXHRInPageDismissal{ |
kdillon | 1c60a4f | 2019-04-11 16:57:30 | [diff] [blame] | 216 | "ForbidSyncXHRInPageDismissal", base::FEATURE_ENABLED_BY_DEFAULT}; |
kdillon | 66bf5b52 | 2019-01-02 22:08:30 | [diff] [blame] | 217 | |
Balazs Engedy | 130ab80 | 2019-02-22 12:14:00 | [diff] [blame] | 218 | // Emergency lever that can be used to restore DeviceOrientationEvent and |
| 219 | // DeviceMotionEvent functionality in non-secure browsing contexts. |
| 220 | // See: https://crbug.com/932078. |
| 221 | const base::Feature kRestrictDeviceSensorEventsToSecureContexts{ |
| 222 | "RestrictDeviceSensorEventsToSecureContexts", |
Balazs Engedy | 4665f96 | 2019-02-27 10:53:09 | [diff] [blame] | 223 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Balazs Engedy | 130ab80 | 2019-02-22 12:14:00 | [diff] [blame] | 224 | |
Carlos IL | d3be52b | 2018-10-08 17:57:18 | [diff] [blame] | 225 | const char kMixedContentAutoupgradeModeParamName[] = "mode"; |
| 226 | const char kMixedContentAutoupgradeModeBlockable[] = "blockable"; |
| 227 | const char kMixedContentAutoupgradeModeOptionallyBlockable[] = |
| 228 | "optionally-blockable"; |
| 229 | |
Madeleine Barowsky | 45be21a4 | 2018-12-07 18:39:30 | [diff] [blame] | 230 | // Decodes lossy WebP images to YUV instead of RGBX and stores in this format |
| 231 | // in the image decode cache. See crbug.com/900264 for details on the feature. |
| 232 | const base::Feature kDecodeLossyWebPImagesToYUV{ |
| 233 | "DecodeLossyWebPImagesToYUV", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 234 | |
Aaron Krajeski | f2f827d42 | 2019-01-08 15:08:34 | [diff] [blame] | 235 | // Use accelerated canvases whenever possible see https://crbug.com/909937 |
| 236 | const base::Feature kAlwaysAccelerateCanvas{"AlwaysAccelerateCanvas", |
| 237 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 238 | |
Takashi Toyoshima | a91506d | 2019-03-28 05:44:42 | [diff] [blame] | 239 | // Enables cache-aware WebFonts loading. See https://crbug.com/570205. |
| 240 | // The feature is disabled on Android for WebView API issue discussed at |
| 241 | // https://crbug.com/942440. |
| 242 | const base::Feature kWebFontsCacheAwareTimeoutAdaption { |
| 243 | "WebFontsCacheAwareTimeoutAdaption", |
| 244 | #if defined(OS_ANDROID) |
| 245 | base::FEATURE_DISABLED_BY_DEFAULT |
| 246 | #else |
| 247 | base::FEATURE_ENABLED_BY_DEFAULT |
| 248 | #endif |
| 249 | }; |
| 250 | |
Hiroki Nakagawa | 893ee50 | 2019-02-04 06:49:53 | [diff] [blame] | 251 | bool IsOffMainThreadSharedWorkerScriptFetchEnabled() { |
| 252 | // Off-the-main-thread shared worker script fetch depends on PlzSharedWorker |
| 253 | // (NetworkService). |
| 254 | DCHECK(!base::FeatureList::IsEnabled( |
| 255 | features::kOffMainThreadSharedWorkerScriptFetch) || |
| 256 | base::FeatureList::IsEnabled(network::features::kNetworkService)) |
| 257 | << "OffMainThreadSharedWorkerScriptFetch is enabled but NetworkService " |
| 258 | << "isn't. OffMainThreadSharedWorkerScriptFetch requires NetworkService."; |
| 259 | return base::FeatureList::IsEnabled(network::features::kNetworkService) && |
| 260 | base::FeatureList::IsEnabled( |
| 261 | features::kOffMainThreadSharedWorkerScriptFetch); |
| 262 | } |
| 263 | |
Hiroki Nakagawa | 7d8cbfa | 2019-02-07 11:01:28 | [diff] [blame] | 264 | bool IsPlzDedicatedWorkerEnabled() { |
| 265 | // PlzDedicatedWorker depends on off-the-main-thread dedicated worker script |
| 266 | // fetch and NetworkService. |
| 267 | #if DCHECK_IS_ON() |
| 268 | if (base::FeatureList::IsEnabled(features::kPlzDedicatedWorker)) { |
| 269 | DCHECK(base::FeatureList::IsEnabled( |
| 270 | features::kOffMainThreadDedicatedWorkerScriptFetch)) |
| 271 | << "PlzDedicatedWorker is enabled but " |
| 272 | << "OffMainThreadDedicatedWorkerScriptFetch isn't. PlzDedicatedWorker " |
| 273 | << "requires OffMainThreadDedicatedWorkerScriptFetch."; |
| 274 | DCHECK(base::FeatureList::IsEnabled(network::features::kNetworkService)) |
| 275 | << "PlzDedicatedWorker is enabled but NetworkService isn't. " |
| 276 | << "PlzDedicatedWorker requires NetworkService."; |
| 277 | } |
| 278 | #endif // DCHECK_IS_ON() |
| 279 | return base::FeatureList::IsEnabled( |
| 280 | features::kOffMainThreadDedicatedWorkerScriptFetch) && |
| 281 | base::FeatureList::IsEnabled(network::features::kNetworkService) && |
| 282 | base::FeatureList::IsEnabled(features::kPlzDedicatedWorker); |
| 283 | } |
| 284 | |
Matt Falkenhagen | 5cc65279 | 2018-06-21 10:34:33 | [diff] [blame] | 285 | } // namespace features |
| 286 | } // namespace blink |