mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
Update features.cc
This commit is contained in:
parent
7407535ca0
commit
bf10c257e2
1 changed files with 26 additions and 8 deletions
34
src/third_party/blink/common/features.cc
vendored
34
src/third_party/blink/common/features.cc
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue