Skip to content

Commit

Permalink
Fixes blink configuration warnings due to disabled features.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarolin committed Sep 17, 2024
1 parent ebe39cc commit 138dd51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/feature_defaults_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ TEST(FeatureDefaultsTest, DisabledFeatures) {
&features::kPrivacyGuidePreloadAndroid,
#endif
&features::kPrivacySandboxAdsAPIsOverride,
&features::kPrivacySandboxAdsAPIsM1Override,
#if !BUILDFLAG(IS_ANDROID)
&features::kReportPakFileIntegrity,
#endif
Expand Down
2 changes: 2 additions & 0 deletions chromium_src/content/common/features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
namespace features {

OVERRIDE_FEATURE_DEFAULT_STATES({{
// This feature should not be enabled when kFencedFrames is disabled.
{kPrivacySandboxAdsAPIsM1Override, base::FEATURE_DISABLED_BY_DEFAULT},
{kResourceTimingForCancelledNavigationInFrame,
base::FEATURE_DISABLED_BY_DEFAULT},
{kServiceWorkerAutoPreload, base::FEATURE_DISABLED_BY_DEFAULT},
Expand Down
3 changes: 3 additions & 0 deletions renderer/brave_content_renderer_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ void BraveContentRendererClient::
SetRuntimeFeaturesDefaultsBeforeBlinkInitialization();

blink::WebRuntimeFeatures::EnableFledge(false);
// Disable topics APIs because kBrowsingTopics feature is disabled
blink::WebRuntimeFeatures::EnableTopicsAPI(false);
blink::WebRuntimeFeatures::EnableTopicsDocumentAPI(false);
blink::WebRuntimeFeatures::EnableWebGPUExperimentalFeatures(false);
blink::WebRuntimeFeatures::EnableWebNFC(false);

Expand Down

0 comments on commit 138dd51

Please sign in to comment.