Skip to content

Commit

Permalink
Merge pull request #19476 from brave/maxk-disable-WebEnvironmentInteg…
Browse files Browse the repository at this point in the history
…rity

Disables WebEnvironmentIntegrity feature and origin trials.
  • Loading branch information
mkarolin authored Jul 31, 2023
2 parents 8cbc7e2 + 4f9f7e3 commit 59f4519
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/brave_main_delegate_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) {
#if BUILDFLAG(IS_MAC)
&features::kUseChromiumUpdater,
#endif
&features::kWebEnvironmentIntegrity,
&features::kWebOTP,
&history::kOrganicRepeatableQueries,
&history::kSyncSegmentsData,
Expand Down
1 change: 1 addition & 0 deletions chromium_src/content/public/common/content_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{
{kSignedExchangeReportingForDistributors,
base::FEATURE_DISABLED_BY_DEFAULT},
{kSignedHTTPExchange, base::FEATURE_DISABLED_BY_DEFAULT},
{kWebEnvironmentIntegrity, base::FEATURE_DISABLED_BY_DEFAULT},
#if BUILDFLAG(IS_ANDROID)
{kWebNfc, base::FEATURE_DISABLED_BY_DEFAULT},
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ bool IsTrialDisabledInBrave(base::StringPiece trial_name) {
"SignedExchangeSubresourcePrefetch",
"SubresourceWebBundles",
"TrustTokens",
"WebEnvironmentIntegrity",
};
// clang-format on

Expand All @@ -61,6 +62,7 @@ bool IsTrialDisabledInBrave(OriginTrialFeature feature) {
OriginTrialFeature::kParakeet,
OriginTrialFeature::kPrivacySandboxAdsAPIs,
OriginTrialFeature::kPrivateStateTokens,
OriginTrialFeature::kWebEnvironmentIntegrity,
};
// clang-format on

Expand Down
2 changes: 2 additions & 0 deletions renderer/brave_content_renderer_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ void BraveContentRendererClient::
blink::WebRuntimeFeatures::EnableFeatureFromString(
"SpeculationRulesPrefetchProxy", false);
blink::WebRuntimeFeatures::EnableFeatureFromString("AdTagging", false);
blink::WebRuntimeFeatures::EnableFeatureFromString("WebEnvironmentIntegrity",
false);
}

BraveContentRendererClient::~BraveContentRendererClient() = default;
Expand Down

0 comments on commit 59f4519

Please sign in to comment.