Update features.cc

This commit is contained in:
Alexander David Frick 2022-07-15 20:46:00 -05:00 committed by GitHub
parent 7407535ca0
commit bf10c257e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -305,7 +305,7 @@ bool IsFencedFramesShadowDOMBased() {
}
const base::Feature kInitialNavigationEntry{"InitialNavigationEntry",
base::FEATURE_DISABLED_BY_DEFAULT};
base::FEATURE_ENABLED_BY_DEFAULT};
bool IsInitialNavigationEntryEnabled() {
return base::FeatureList::IsEnabled(blink::features::kInitialNavigationEntry);
@ -959,7 +959,7 @@ const base::FeatureParam<std::string>
const base::Feature kSanitizerAPI{"SanitizerAPI",
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kSanitizerAPIv0{"SanitizerAPIv0",
base::FEATURE_DISABLED_BY_DEFAULT};
base::FEATURE_ENABLED_BY_DEFAULT};
// Controls whether the Sanitizer API allows namespaced content (SVG + MathML).
//
@ -1425,6 +1425,9 @@ const base::Feature kReduceUserAgentMinorVersion{
const base::FeatureParam<std::string> kUserAgentFrozenBuildVersion{
&kReduceUserAgentMinorVersion, "build_version", "0"};
const base::Feature kReduceUserAgentPlatformOsCpu{
"ReduceUserAgentPlatformOsCpu", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kReportFCPOnlyOnSuccessfulCommit{
"ReportFCPOnlyOnSuccessfulCommit", base::FEATURE_DISABLED_BY_DEFAULT};
@ -1475,13 +1478,28 @@ const base::Feature kEstablishGpuChannelAsync{
const base::Feature kDecodeScriptSourceOffThread{
"DecodeScriptSourceOffThread", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kDelayAsyncScriptExecution{
"DelayAsyncScriptExecution", base::FEATURE_DISABLED_BY_DEFAULT};
const base::FeatureParam<DelayAsyncScriptDelayType>::Option
delay_async_script_execution_delay_types[] = {
{DelayAsyncScriptDelayType::kFinishedParsing, "finished_parsing"},
{DelayAsyncScriptDelayType::kFirstPaintOrFinishedParsing,
"first_paint_or_finished_parsing"}};
const base::FeatureParam<DelayAsyncScriptDelayType>
kDelayAsyncScriptExecutionDelayParam{
&kDelayAsyncScriptExecution, "delay_type",
DelayAsyncScriptDelayType::kFinishedParsing,
&delay_async_script_execution_delay_types};
const base::Feature kForceDeferScriptIntervention{
"ForceDeferScriptIntervention", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kAllowSourceSwitchOnPausedVideoMediaStream{
"AllowSourceSwitchOnPausedVideoMediaStream",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kDispatchPopstateSync{"DispatchPopstateSync",
base::FEATURE_ENABLED_BY_DEFAULT};
// Exposes non-standard stats in the WebRTC getStats() API.
const base::Feature kWebRtcExposeNonStandardStats{
"WebRtc-ExposeNonStandardStats", base::FEATURE_DISABLED_BY_DEFAULT};
@ -1522,9 +1540,6 @@ const base::Feature kFileSystemUrlNavigation{"FileSystemUrlNavigation",
const base::Feature kEarlyExitOnNoopClassOrStyleChange{
"EarlyExitOnNoopClassOrStyleChange", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kLocalFrameRootPrePostFCPMetrics{
"LocalFrameRootPrePostFCPMetrics", base::FEATURE_DISABLED_BY_DEFAULT};
// TODO(mahesh.ma): Enable for supported Android versions once feature is ready.
const base::Feature kStylusWritingToInput{"StylusWritingToInput",
base::FEATURE_DISABLED_BY_DEFAULT};
@ -1539,5 +1554,8 @@ const base::Feature kTimedHTMLParserBudget{"TimedHTMLParserBudget",
const base::Feature kCSSOverflowForReplacedElements{
"CSSOverflowForReplacedElements", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kClipboardUnsanitizedContent{
"ClipboardUnsanitizedContent", base::FEATURE_DISABLED_BY_DEFAULT};
} // namespace features
} // namespace blink