Files
brave-core/browser/ui/brave_ui_features.cc
Sangwoo Ko fbdac200d8 Add flag to force popups to open as tabs (#32380)
* Add flag to force popups to open as tabs

As per user request, the following changes overrides
WindowOpenDisposition::NEW_POPUP to
WindowOpenDisposition::NEW_FOREGROUND_TAB
when the feature flag kForcePopupToBeOpenedAsTab is enabled.
2025-11-28 17:55:19 +09:00

26 lines
946 B
C++

// Copyright (c) 2024 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
#include "brave/browser/ui/brave_ui_features.h"
namespace features {
BASE_FEATURE(kBraveNtpSearchWidget,
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kBraveFilledBookmarkFolderIcon, base::FEATURE_DISABLED_BY_DEFAULT);
#if BUILDFLAG(IS_WIN)
// Enables window cloaking on window creation to prevent a white flash.
BASE_FEATURE(kBraveWorkaroundNewWindowFlash,
base::FEATURE_ENABLED_BY_DEFAULT);
#endif // BUILDFLAG(IS_WIN)
// A feature flag to force all popup windows to be opened as tabs.
// https://github.com/brave/brave-browser/issues/40959
BASE_FEATURE(kForcePopupToBeOpenedAsTab, base::FEATURE_DISABLED_BY_DEFAULT);
} // namespace features