blob: 3b0e9c6edf1109729ee09f5340f40424e998a6f6 [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.
67const base::Feature kCSSBackdropFilter{"CSSBackdropFilter",
68 base::FEATURE_ENABLED_BY_DEFAULT};
69
Vladimir Levin43758ecc2019-05-09 18:04:0370// Enable Display Locking JavaScript APIs.
71const base::Feature kDisplayLocking{"DisplayLocking",
72 base::FEATURE_DISABLED_BY_DEFAULT};
73
Chris Harrelson6e41e3ae2019-05-03 23:09:4074// Enable applying rounded corner masks via a GL shader rather than
75// a mask layer.
Chris Harrelson3f7e36112019-08-21 19:15:4876const base::Feature kFastBorderRadius {
77 "FastBorderRadius",
78#if defined(OS_MACOSX)
79 // A FastBorderRadiusMac experiment is rolling out separately for that
80 // platform, due to complications with CALayer overlay optimizations.
81 base::FEATURE_DISABLED_BY_DEFAULT
82#else
83 base::FEATURE_ENABLED_BY_DEFAULT
84#endif
85};
Chris Harrelson6e41e3ae2019-05-03 23:09:4086
Ian Kilpatricke68ef11a2018-07-04 03:52:1087// Enable LayoutNG.
Emil A Eklund69eeb562019-07-03 01:38:3088const base::Feature kLayoutNG{"LayoutNG", base::FEATURE_ENABLED_BY_DEFAULT};
Ian Kilpatricke68ef11a2018-07-04 03:52:1089
Makoto Shimazu172eec02018-11-29 06:21:4490const base::Feature kMixedContentAutoupgrade{"AutoupgradeMixedContent",
91 base::FEATURE_DISABLED_BY_DEFAULT};
92
Tarun Bansal422f9012019-01-23 16:55:5893// Used to control the collection of anchor element metrics (crbug.com/856683).
94// If kNavigationPredictor is enabled, then metrics of anchor elements
95// in the first viewport after the page load and the metrics of the clicked
96// anchor element will be extracted and recorded. Additionally, navigation
97// predictor may preconnect/prefetch to resources/origins to make the
98// future navigations faster.
Sofiya Semenovae4e076152019-07-29 20:10:2799const base::Feature kNavigationPredictor {
100 "NavigationPredictor",
101#if defined(OS_ANDROID)
102 base::FEATURE_ENABLED_BY_DEFAULT
103#else
104 base::FEATURE_DISABLED_BY_DEFAULT
105#endif
106};
Tarun Bansal422f9012019-01-23 16:55:58107
Kenichi Ishibashi27bdc952019-08-16 03:16:30108// Start service workers on the IO thread.
109// https://crbug.com/692909
110const base::Feature kOffMainThreadServiceWorkerStartup{
111 "OffMainThreadServiceWorkerStartup", base::FEATURE_DISABLED_BY_DEFAULT};
112
Hiroki Nakagawa61ee0042019-01-22 06:30:26113// Enable browser-initiated dedicated worker script loading
114// (PlzDedicatedWorker). https://crbug.com/906991
115const base::Feature kPlzDedicatedWorker{"PlzDedicatedWorker",
116 base::FEATURE_DISABLED_BY_DEFAULT};
117
Daniel Murphy95792ef2018-10-04 01:29:55118// Enable Portals. https://crbug.com/865123.
119const base::Feature kPortals{"Portals", base::FEATURE_DISABLED_BY_DEFAULT};
120
Tarun Bansal8df12b52019-02-15 05:46:30121// Enable limiting previews loading hints to specific resource types.
122const base::Feature kPreviewsResourceLoadingHintsSpecificResourceTypes{
123 "PreviewsResourceLoadingHintsSpecificResourceTypes",
124 base::FEATURE_DISABLED_BY_DEFAULT};
125
Aditya Keerthie84331b32019-03-20 15:25:52126// Perform a memory purge after a renderer is backgrounded. Formerly labelled as
127// the "PurgeAndSuspend" experiment.
128//
129// TODO(adityakeerthi): Disabled by default on Mac and Android for historical
130// reasons. Consider enabling by default if experiment results are positive.
131// https://crbug.com/926186
132const base::Feature kPurgeRendererMemoryWhenBackgrounded {
133 "PurgeRendererMemoryWhenBackgrounded",
134#if defined(OS_MACOSX) || defined(OS_ANDROID)
135 base::FEATURE_DISABLED_BY_DEFAULT
136#else
137 base::FEATURE_ENABLED_BY_DEFAULT
138#endif
139};
140
David Bokan911bded2018-11-27 23:23:32141// Enable Implicit Root Scroller. https://crbug.com/903260.
David Bokan145b5472019-05-22 14:38:44142// TODO(bokan): Temporarily disabled on desktop platforms to address issues
143// with non-overlay scrollbars. https://crbug.com/948059.
144const base::Feature kImplicitRootScroller {
145 "ImplicitRootScroller",
146#if defined(OS_ANDROID)
147 base::FEATURE_ENABLED_BY_DEFAULT
148#else
149 base::FEATURE_DISABLED_BY_DEFAULT
150#endif
151};
David Bokan911bded2018-11-27 23:23:32152
Makoto Shimazu172eec02018-11-29 06:21:44153// Enables usage of getDisplayMedia() that allows capture of web content, see
154// https://crbug.com/865060.
155const base::Feature kRTCGetDisplayMedia{"RTCGetDisplayMedia",
156 base::FEATURE_ENABLED_BY_DEFAULT};
157
158// Changes the default RTCPeerConnection constructor behavior to use Unified
159// Plan as the SDP semantics. When the feature is enabled, Unified Plan is used
160// unless the default is overridden (by passing {sdpSemantics:'plan-b'} as the
161// argument).
162const base::Feature kRTCUnifiedPlanByDefault{"RTCUnifiedPlanByDefault",
Henrik Boström07021ec82019-01-17 22:23:56163 base::FEATURE_ENABLED_BY_DEFAULT};
Makoto Shimazu172eec02018-11-29 06:21:44164
Johannes Kronad5a4532019-01-09 11:17:46165// Determines if the SDP attrbute extmap-allow-mixed should be offered by
166// default or not. The default value can be overridden by passing
167// {offerExtmapAllowMixed:true} as an argument to the RTCPeerConnection
168// constructor.
169const base::Feature kRTCOfferExtmapAllowMixed{
170 "RTCOfferExtmapAllowMixed", base::FEATURE_DISABLED_BY_DEFAULT};
171
Ben Kelly24e20aa2019-04-25 21:27:16172const base::Feature kServiceWorkerIsolateInForeground{
Ben Kellyb27f17e82019-06-26 05:31:41173 "ServiceWorkerIsolateInForeground", base::FEATURE_ENABLED_BY_DEFAULT};
Ben Kelly24e20aa2019-04-25 21:27:16174
momohattfc352292018-08-29 05:12:36175const base::Feature kServiceWorkerImportedScriptUpdateCheck{
Makoto Shimazub9067eb02019-08-18 23:42:53176 "ServiceWorkerImportedScriptUpdateCheck", base::FEATURE_ENABLED_BY_DEFAULT};
momohattfc352292018-08-29 05:12:36177
Kenichi Ishibashi42f883d2019-01-11 08:26:14178const base::Feature kServiceWorkerAggressiveCodeCache{
179 "ServiceWorkerAggressiveCodeCache", base::FEATURE_DISABLED_BY_DEFAULT};
180
Makoto Shimazua8b3d742019-04-05 06:55:51181// Experiment of the delay from navigation to starting an update of a service
182// worker's script.
183const base::Feature kServiceWorkerUpdateDelay{
184 "ServiceWorkerUpdateDelay", base::FEATURE_DISABLED_BY_DEFAULT};
185
Scott Haseley8eefdcd2018-08-22 16:50:19186// Freeze scheduler task queues in background after allowed grace time.
187// "stop" is a legacy name.
188const base::Feature kStopInBackground {
189 "stop-in-background",
190#if defined(OS_ANDROID)
191 base::FEATURE_ENABLED_BY_DEFAULT
192#else
193 base::FEATURE_DISABLED_BY_DEFAULT
194#endif
195};
196
Takashi Sakamotoc19fc2b2019-04-10 06:30:52197// Freeze scheduler task queues in background on network idle.
198// This feature only works if stop-in-background is enabled.
199const base::Feature kFreezeBackgroundTabOnNetworkIdle{
200 "freeze-background-tab-on-network-idle", base::FEATURE_DISABLED_BY_DEFAULT};
201
Shubhie Panicker60bd4b02018-09-26 00:02:15202// Freeze non-timer task queues in background, after allowed grace time.
203// "stop" is a legacy name.
Dave Tapuska9140c552019-05-30 16:18:56204const base::Feature kStopNonTimersInBackground{
205 "stop-non-timers-in-background", base::FEATURE_ENABLED_BY_DEFAULT};
Scott Haseley7757f6c2018-08-03 14:33:23206
David Bokane9370c22019-02-14 15:19:58207// Enable text snippets in URL fragments. https://crbug.com/919204.
208const base::Feature kTextFragmentAnchor{"TextFragmentAnchor",
209 base::FEATURE_DISABLED_BY_DEFAULT};
210
Bill Budge4d028f12018-11-20 15:05:12211// Enables the site isolated Wasm code cache that is keyed on the resource URL
212// and the origin lock of the renderer that is requesting the resource. When
213// this flag is enabled, content/GeneratedCodeCache handles code cache requests.
214const base::Feature kWasmCodeCache = {"WasmCodeCache",
215 base::FEATURE_DISABLED_BY_DEFAULT};
216
Marijn Kruisselbrinkca4bb5e2019-04-22 18:19:42217// Writable files and native file system access. https://crbug.com/853326
218const base::Feature kNativeFileSystemAPI{"NativeFileSystemAPI",
Marijn Kruisselbrinkfa0e1052019-03-05 22:32:55219 base::FEATURE_DISABLED_BY_DEFAULT};
Makoto Shimazu172eec02018-11-29 06:21:44220
Jay Harris583f48922019-05-06 05:55:24221// File handling integration. https://crbug.com/829689
222const base::Feature kFileHandlingAPI{"FileHandlingAPI",
223 base::FEATURE_DISABLED_BY_DEFAULT};
224
kdillon66bf5b522019-01-02 22:08:30225// Allows for synchronous XHR requests during page dismissal
226const base::Feature kForbidSyncXHRInPageDismissal{
Katie Dillon54c1ad222019-04-18 23:49:52227 "ForbidSyncXHRInPageDismissal", base::FEATURE_DISABLED_BY_DEFAULT};
kdillon66bf5b522019-01-02 22:08:30228
Dominic Farolino693fd72d2019-08-05 11:09:44229// Forces the redirect mode for prefetches to kManual. See crbug.com/988956.
230const base::Feature kPrefetchRedirectError{"PrefetchRedirectError",
231 base::FEATURE_DISABLED_BY_DEFAULT};
232
Carlos ILd3be52b2018-10-08 17:57:18233const char kMixedContentAutoupgradeModeParamName[] = "mode";
234const char kMixedContentAutoupgradeModeBlockable[] = "blockable";
235const char kMixedContentAutoupgradeModeOptionallyBlockable[] =
236 "optionally-blockable";
237
Madeleine Barowsky45be21a42018-12-07 18:39:30238// Decodes lossy WebP images to YUV instead of RGBX and stores in this format
239// in the image decode cache. See crbug.com/900264 for details on the feature.
240const base::Feature kDecodeLossyWebPImagesToYUV{
241 "DecodeLossyWebPImagesToYUV", base::FEATURE_DISABLED_BY_DEFAULT};
242
Tarun Bansale4ad3472019-07-09 03:59:28243// Enables usage of render frame observer as the receiver of the resource
244// loading hints in the render process.
245// https://crbug.com/891328.
246const base::Feature kSendPreviewsLoadingHintsBeforeCommit{
247 "SendPreviewsLoadingHintsBeforeCommit", base::FEATURE_ENABLED_BY_DEFAULT};
248
Takashi Toyoshimaa91506d2019-03-28 05:44:42249// Enables cache-aware WebFonts loading. See https://crbug.com/570205.
250// The feature is disabled on Android for WebView API issue discussed at
251// https://crbug.com/942440.
252const base::Feature kWebFontsCacheAwareTimeoutAdaption {
253 "WebFontsCacheAwareTimeoutAdaption",
254#if defined(OS_ANDROID)
255 base::FEATURE_DISABLED_BY_DEFAULT
256#else
257 base::FEATURE_ENABLED_BY_DEFAULT
258#endif
259};
260
Ehsan Karamadbe95d122019-05-10 17:59:06261// Enabled to block programmatic focus in subframes when not triggered by user
262// activation (see htpps://crbug.com/954349).
263const base::Feature kBlockingFocusWithoutUserActivation{
264 "BlockingFocusWithoutUserActivation", base::FEATURE_DISABLED_BY_DEFAULT};
265
Hongchan Choi370d3af2019-05-20 20:56:58266const base::Feature kAudioWorkletRealtimeThread{
267 "AudioWorkletRealtimeThread", base::FEATURE_DISABLED_BY_DEFAULT};
268
Ryan Sturm139c3ac2019-07-12 18:52:53269// A feature to reduce the set of resources fetched by No-State Prefetch.
270const base::Feature kLightweightNoStatePrefetch{
Ryan Sturm37bcbec2019-07-26 12:53:08271 "LightweightNoStatePrefetch", base::FEATURE_DISABLED_BY_DEFAULT};
Ryan Sturm139c3ac2019-07-12 18:52:53272
Daniel Libby7da24b72019-05-22 05:46:35273// Use scroll gestures for scrollbar scrolls (see https://crbug.com/954007).
274const base::Feature kScrollbarInjectScrollGestures{
Daniel Libby97b44752019-05-31 23:00:07275 "ScrollbarInjectScrollGestures", base::FEATURE_ENABLED_BY_DEFAULT};
Daniel Libby7da24b72019-05-22 05:46:35276
Aran Gilman5e9672bed2019-08-02 19:07:49277// Automatically convert light-themed pages to use a Blink-generated dark theme
278const base::Feature kForceWebContentsDarkMode{
279 "WebContentsForceDark", base::FEATURE_DISABLED_BY_DEFAULT};
280
281// Which algorithm should be used for color inversion?
282const base::FeatureParam<ForceDarkInversionMethod>::Option
283 forcedark_inversion_method_options[] = {
284 {ForceDarkInversionMethod::kUseBlinkSettings,
285 "use_blink_settings_for_method"},
286 {ForceDarkInversionMethod::kHslBased, "hsl_based"},
Aran Gilman8b3ca41c2019-08-12 18:59:04287 {ForceDarkInversionMethod::kCielabBased, "cielab_based"},
288 {ForceDarkInversionMethod::kRgbBased, "rgb_based"}};
Aran Gilman5e9672bed2019-08-02 19:07:49289
290const base::FeatureParam<ForceDarkInversionMethod>
291 kForceDarkInversionMethodParam{&kForceWebContentsDarkMode,
292 "inversion_method",
293 ForceDarkInversionMethod::kUseBlinkSettings,
294 &forcedark_inversion_method_options};
295
296// Should images be inverted?
297const base::FeatureParam<ForceDarkImageBehavior>::Option
298 forcedark_image_behavior_options[] = {
299 {ForceDarkImageBehavior::kUseBlinkSettings,
300 "use_blink_settings_for_images"},
301 {ForceDarkImageBehavior::kInvertNone, "none"},
302 {ForceDarkImageBehavior::kInvertSelectively, "selective"}};
303
304const base::FeatureParam<ForceDarkImageBehavior> kForceDarkImageBehaviorParam{
305 &kForceWebContentsDarkMode, "image_behavior",
306 ForceDarkImageBehavior::kUseBlinkSettings,
307 &forcedark_image_behavior_options};
308
309// Do not invert text lighter than this.
310// Range: 0 (do not invert any text) to 256 (invert all text)
311// Can also set to -1 to let Blink's internal settings control the value
312const base::FeatureParam<int> kForceDarkTextLightnessThresholdParam{
313 &kForceWebContentsDarkMode, "text_lightness_threshold", -1};
314
315// Do not invert backgrounds darker than this.
316// Range: 0 (invert all backgrounds) to 256 (invert no backgrounds)
317// Can also set to -1 to let Blink's internal settings control the value
318const base::FeatureParam<int> kForceDarkBackgroundLightnessThresholdParam{
319 &kForceWebContentsDarkMode, "background_lightness_threshold", -1};
320
Fernando Serboncinif3186162019-06-10 20:03:47321const base::Feature kCanvasAlwaysDeferral{"CanvasAlwaysDeferral",
322 base::FEATURE_ENABLED_BY_DEFAULT};
323
Adam Rice8e55e802019-06-24 11:58:03324// Use the new C++ implementation of WHATWG Streams. See
325// https://crbug.com/977500.
326const base::Feature kStreamsNative{"StreamsNative",
Adam Rice3c4fc7b2019-08-15 08:51:13327 base::FEATURE_ENABLED_BY_DEFAULT};
Adam Rice8e55e802019-06-24 11:58:03328
Michael Lippautze670df9f2019-07-09 11:39:49329// Blink garbage collection.
330// Enables compaction of backing stores on Blink's heap.
331const base::Feature kBlinkHeapCompaction{"BlinkHeapCompaction",
332 base::FEATURE_ENABLED_BY_DEFAULT};
333// Enables concurrently marking Blink's heap.
334const base::Feature kBlinkHeapConcurrentMarking{
335 "BlinkHeapConcurrentMarking", base::FEATURE_DISABLED_BY_DEFAULT};
Anton Bikineev9b7b3722019-07-09 13:48:39336// Enables concurrently sweeping Blink's heap.
337const base::Feature kBlinkHeapConcurrentSweeping{
Anton Bikineev204cc752019-08-07 00:26:37338 "BlinkHeapConcurrentSweeping", base::FEATURE_ENABLED_BY_DEFAULT};
Michael Lippautze670df9f2019-07-09 11:39:49339// Enables incrementally marking Blink's heap.
340const base::Feature kBlinkHeapIncrementalMarking{
341 "BlinkHeapIncrementalMarking", base::FEATURE_ENABLED_BY_DEFAULT};
342// Enables a marking stress mode that schedules more garbage collections and
343// also adds additional verification passes.
344const base::Feature kBlinkHeapIncrementalMarkingStress{
345 "BlinkHeapIncrementalMarkingStress", base::FEATURE_DISABLED_BY_DEFAULT};
346// Enables unified heap garbage collection scheduling where scheduling is
347// delegated to V8's heap controller.
348const base::Feature kBlinkHeapUnifiedGCScheduling{
349 "BlinkHeapUnifiedGCScheduling", base::FEATURE_ENABLED_BY_DEFAULT};
350
Ben Kelly298d8e02019-07-10 17:37:49351// Enables a delay before BufferingBytesConsumer begins reading from its
352// underlying consumer when instantiated with CreateWithDelay().
353const base::Feature kBufferingBytesConsumerDelay{
Ben Kellyb97951a2019-08-05 19:59:51354 "BufferingBytesConsumerDelay", base::FEATURE_ENABLED_BY_DEFAULT};
Ben Kelly298d8e02019-07-10 17:37:49355const base::FeatureParam<int> kBufferingBytesConsumerDelayMilliseconds{
356 &kBufferingBytesConsumerDelay, "milliseconds", 50};
357
Yoav Weissddfb8d2e2019-07-15 22:34:03358// Enables removing AppCache delays when triggering requests when the HTML was
359// not fetched from AppCache.
360const base::Feature kVerifyHTMLFetchedFromAppCacheBeforeDelay{
361 "VerifyHTMLFetchedFromAppCacheBeforeDelay",
362 base::FEATURE_DISABLED_BY_DEFAULT};
363
Michael Spang8d2303e2019-07-26 01:56:32364// Controls whether we use ThreadPriority::DISPLAY for renderer
365// compositor & IO threads.
366const base::Feature kBlinkCompositorUseDisplayThreadPriority {
367 "BlinkCompositorUseDisplayThreadPriority",
368#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
369 base::FEATURE_ENABLED_BY_DEFAULT
370#else
371 base::FEATURE_DISABLED_BY_DEFAULT
372#endif
373};
374
Yuki Shiinoa812f492019-08-23 06:47:46375// Ignores cross origin windows in the named property interceptor of Window.
376// https://crbug.com/538562
377const base::Feature kIgnoreCrossOriginWindowWhenNamedAccessOnWindow{
378 "IgnoreCrossOriginWindowWhenNamedAccessOnWindow",
379 base::FEATURE_DISABLED_BY_DEFAULT};
380
Matt Falkenhagen5cc652792018-06-21 10:34:33381} // namespace features
382} // namespace blink