fix: re-enable MacWebContentsOcclusion feature flag (#45775)

This commit is contained in:
Keeley Hammond 2025-02-25 09:28:09 -08:00 committed by GitHub
parent 7870ade07a
commit 9b6ba1ced1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 149 additions and 17 deletions

View file

@ -11,6 +11,7 @@
#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "components/spellcheck/common/spellcheck_features.h"
#include "content/common/features.h"
#include "content/public/common/content_features.h"
#include "electron/buildflags/buildflags.h"
#include "media/base/media_switches.h"
@ -48,6 +49,13 @@ void InitializeFeatureList() {
std::string(",") + spellcheck::kWinDelaySpellcheckServiceInit.name;
#endif
#if BUILDFLAG(IS_MAC)
disable_features +=
// MacWebContentsOcclusion is causing some odd visibility
// issues with multiple web contents
std::string(",") + features::kMacWebContentsOcclusion.name;
#endif
#if BUILDFLAG(ENABLE_PDF_VIEWER)
// Enable window.showSaveFilePicker api for saving pdf files.
// Refs https://issues.chromium.org/issues/373852607