Compare commits

...

19 Commits

Author SHA1 Message Date
wukko b3031f79b3 revision: bump to 6 2025-10-16 00:08:32 +06:00
wukko ab6faeaed9 patches: refresh for chromium 141.0.7390.107 2025-10-15 14:11:45 +06:00
wukko 5bf2bc5966 merge: update to ungoogled-chromium 141.0.7390.107 2025-10-15 13:54:59 +06:00
wukko 68ef8ffe61 helium/core: disable fedcm login nag bubble 2025-10-15 13:05:12 +06:00
Blaise 11b9b4f0eb Update to Chromium 141.0.7390.107 2025-10-14 15:34:56 -05:00
jj fd4e3ec87b helium/core: add "do not show again" to default browser nag (#264) 2025-10-14 21:52:17 +02:00
jj 7f886834a7 helium/split-view: reload only focused half of split view (#263)
fixes #118
2025-10-14 18:24:24 +02:00
wukko 1c4ad07e9c helium/core/keyboard-shortcuts: protect tab search action
discord hijacks it with a useless action, and seemingly no other web app uses cmd+shift+a for anything
2025-10-14 21:55:48 +06:00
wukko ce80c9748f helium/core: toggle for ⌘+Shift+C, add ⌘+Shift+E as element inspector
- added a pref and a toggle in accessibility settings for controlling the state of ⌘+Shift+C'sbehavior and restoring inspector functionality.
- added helium's own command specifically for ⌘+Shift+C shortcut to prevent any unexpected breakage or side effects.
- assigned ⌘+Shift+E to enable element inspector on all platforms, since ⌘+Shift+C copies the URL by default.
- updated the inspector's keyboard shortcut in devtools tooltip to display ⌘+Shift+E.
- assigned ⌘+Shift+I to open devtools on macos. previously it enabled the inspector, but it makes more sense to unify the keyboard combo effects across platforms. now ⌘/Ctrl+Shift+I toggles devtools on all platforms in the same way.
- merged `copy-page-url-shortcut.patch`, `protect-browser-keyboard-shortcuts.patch`, and macos' `replace-email-shortcut-with-devtools.patch` into `keyboard-shortcuts.patch`

closes #96
2025-10-14 21:21:04 +06:00
Noa Virellia ea61e0bcd5 utils/{generate,replace}_resources: add shebang 2025-10-10 12:44:58 +08:00
Noa Virellia d813f47f4e utils: make utility scripts executable 2025-10-10 12:37:47 +08:00
Blaise dd24681d9d Update to Chromium 141.0.7390.76 2025-10-09 16:09:06 -05:00
wukko 50e0255fe2 revision: bump to 5 2025-10-08 16:40:10 +06:00
wukko b735b3ae1d helium/core: disable non-milestone update toast
disables the "Helium was updated" toast in top right. just unnecessary imo.
2025-10-08 16:39:43 +06:00
wukko 115cf2e55a revision: bump to 4 2025-10-08 14:39:38 +06:00
wukko 7022a9e02e helium/core/component-schema: fix file path construction on windows 2025-10-08 14:34:17 +06:00
wukko 9fc0ab1720 patches: refresh for 141.0.7390.65 2025-10-08 14:29:42 +06:00
wukko abb3c6628a merge: update to ungoogled-chromium 141.0.7390.65 2025-10-08 14:19:51 +06:00
Blaise f62b1281a3 Update to Chromium 141.0.7390.65 2025-10-07 14:52:02 -05:00
38 changed files with 489 additions and 128 deletions
+1 -1
View File
@@ -1 +1 @@
141.0.7390.54
141.0.7390.107
+3
View File
@@ -1158,6 +1158,7 @@ chrome/browser/flags/android/chrome_session_state.h
chrome/browser/font_prewarmer_tab_helper_browsertest.cc
chrome/browser/glic/e2e_test/glic_e2e_test.cc
chrome/browser/glic/fre/glic_fre_controller.cc
chrome/browser/glic/fre/glic_fre_controller_interactive_uitest.cc
chrome/browser/glic/fre/glic_fre_controller_unittest.cc
chrome/browser/glic/fre/glic_fre_page_handler.cc
chrome/browser/glic/glic_metrics_unittest.cc
@@ -1167,6 +1168,7 @@ chrome/browser/glic/host/glic_cookie_synchronizer.cc
chrome/browser/glic/host/glic_cookie_synchronizer_unittest.cc
chrome/browser/glic/host/glic_page_handler.cc
chrome/browser/glic/host/glic_ui.cc
chrome/browser/glic/host/glic_ui_interactive_uitest.cc
chrome/browser/glic/host/guest_util_unittest.cc
chrome/browser/glic/media/glic_media_integration.cc
chrome/browser/glic/media/glic_media_integration_unittest.cc
@@ -1564,6 +1566,7 @@ chrome/browser/resources/gaia_auth_host/PRESUBMIT.py
chrome/browser/resources/gaia_auth_host/authenticator.js
chrome/browser/resources/gaia_auth_host/saml_handler.js
chrome/browser/resources/gaia_auth_host/saml_password_attributes.js
chrome/browser/resources/glic/fre/fre_app_controller.ts
chrome/browser/resources/glic/url_pattern.d.ts
chrome/browser/resources/glic/webview.ts
chrome/browser/resources/hangout_services/manifest_v2.json
@@ -448,7 +448,7 @@
"//chrome/browser/search_engines",
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1907,9 +1907,6 @@ void RegisterLocalState(PrefRegistrySimp
@@ -1914,9 +1914,6 @@ void RegisterLocalState(PrefRegistrySimp
DeviceOAuth2TokenStoreDesktop::RegisterPrefs(registry);
#endif
@@ -494,7 +494,7 @@
#include "chrome/browser/search/background/ntp_background_service_factory.h"
#include "chrome/browser/search/background/ntp_custom_background_service_factory.h"
#include "chrome/browser/search/instant_service_factory.h"
@@ -1056,7 +1054,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1060,7 +1058,6 @@ void ChromeBrowserMainExtraPartsProfiles
#if BUILDFLAG(CHROME_ROOT_STORE_CERT_MANAGEMENT_UI)
net::ServerCertificateDatabaseServiceFactory::GetInstance();
#endif
@@ -502,7 +502,7 @@
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
ProfileManagementDisclaimerServiceFactory::GetInstance();
#endif
@@ -1105,9 +1102,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1109,9 +1106,6 @@ void ChromeBrowserMainExtraPartsProfiles
OneTimePermissionsTrackerFactory::GetInstance();
#endif
OpenerHeuristicServiceFactory::GetInstance();
@@ -512,7 +512,7 @@
OptimizationGuideKeyedServiceFactory::GetInstance();
OriginKeyedPermissionActionServiceFactory::GetInstance();
OriginTrialsFactory::GetInstance();
@@ -1187,13 +1181,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1191,13 +1185,6 @@ void ChromeBrowserMainExtraPartsProfiles
policy::UserPolicySigninServiceFactory::GetInstance();
#endif
PolicyBlocklistFactory::GetInstance();
@@ -526,7 +526,7 @@
PredictionServiceFactory::GetInstance();
predictors::AutocompleteActionPredictorFactory::GetInstance();
predictors::LoadingPredictorFactory::GetInstance();
@@ -1275,10 +1262,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1279,10 +1266,6 @@ void ChromeBrowserMainExtraPartsProfiles
SafetyHubMenuNotificationServiceFactory::GetInstance();
#if !BUILDFLAG(IS_ANDROID)
SafetyHubHatsServiceFactory::GetInstance();
@@ -537,7 +537,7 @@
#endif
#if BUILDFLAG(IS_CHROMEOS)
if (ash::features::IsScannerEnabled()) {
@@ -1399,7 +1382,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1403,7 +1386,6 @@ void ChromeBrowserMainExtraPartsProfiles
TrackingProtectionSettingsFactory::GetInstance();
translate::TranslateRankerFactory::GetInstance();
#if !BUILDFLAG(IS_ANDROID)
@@ -1165,7 +1165,7 @@
#include "chrome/browser/new_tab_page/modules/v2/authentication/microsoft_auth_page_handler.h"
#include "chrome/browser/new_tab_page/modules/v2/calendar/google_calendar_page_handler.h"
#include "chrome/browser/new_tab_page/modules/v2/calendar/outlook_calendar_page_handler.h"
@@ -2160,7 +2159,6 @@ void RegisterProfilePrefs(user_prefs::Pr
@@ -2167,7 +2166,6 @@ void RegisterProfilePrefs(user_prefs::Pr
NewTabFooterUI::RegisterProfilePrefs(registry);
NewTabPageHandler::RegisterProfilePrefs(registry);
NewTabPageUI::RegisterProfilePrefs(registry);
@@ -1175,7 +1175,7 @@
promos_utils::RegisterProfilePrefs(registry);
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
@@ -878,9 +878,7 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -879,9 +879,7 @@ void ChromeBrowserMainExtraPartsProfiles
enterprise_connectors::TelomereEventRouterFactory::GetInstance();
}
#endif
@@ -2518,7 +2518,7 @@
}
--- a/extensions/browser/extension_registrar.cc
+++ b/extensions/browser/extension_registrar.cc
@@ -782,103 +782,27 @@ void ExtensionRegistrar::UnblockAllExten
@@ -789,103 +789,27 @@ void ExtensionRegistrar::UnblockAllExten
void ExtensionRegistrar::OnBlocklistStateRemoved(
const std::string& extension_id) {
@@ -1065,7 +1065,7 @@
#include "components/signin/public/base/signin_prefs.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/site_engagement/content/site_engagement_service.h"
@@ -1712,7 +1710,6 @@ void RegisterLocalState(PrefRegistrySimp
@@ -1719,7 +1717,6 @@ void RegisterLocalState(PrefRegistrySimp
PushMessagingServiceImpl::RegisterPrefs(registry);
#endif
RegisterScreenshotPrefs(registry);
@@ -1073,7 +1073,7 @@
search_engines::SearchEngineChoiceService::RegisterLocalStatePrefs(registry);
secure_origin_allowlist::RegisterPrefs(registry);
segmentation_platform::SegmentationPlatformService::RegisterLocalStatePrefs(
@@ -2048,7 +2045,6 @@ void RegisterProfilePrefs(user_prefs::Pr
@@ -2055,7 +2052,6 @@ void RegisterProfilePrefs(user_prefs::Pr
#if BUILDFLAG(SAFE_BROWSING_AVAILABLE)
safe_browsing::file_type::RegisterProfilePrefs(registry);
#endif
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "extensions/browser/blocklist_extension_prefs.h"
#include "extensions/browser/delayed_install_manager.h"
#include "extensions/browser/disable_reason.h"
@@ -533,6 +534,22 @@ void ExtensionRegistrar::AddComponentExt
@@ -540,6 +541,22 @@ void ExtensionRegistrar::AddComponentExt
}
AddExtension(extension);
@@ -308,7 +308,7 @@
String BaseRenderingContext2D::lang() const {
--- a/third_party/blink/renderer/platform/BUILD.gn
+++ b/third_party/blink/renderer/platform/BUILD.gn
@@ -1813,6 +1813,7 @@ component("platform") {
@@ -1814,6 +1814,7 @@ component("platform") {
"//components/paint_preview/common",
"//components/search_engines:search_engine_utils",
"//components/translate/core/language_detection",
@@ -343,7 +343,7 @@
#include "third_party/skia/include/core/SkImage.h"
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -2319,6 +2319,12 @@
@@ -2309,6 +2309,12 @@
status: "stable",
},
{
@@ -314,7 +314,7 @@ approach to change color components.
SkJpegEncoder::Options options;
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -2325,6 +2325,9 @@
@@ -2315,6 +2315,9 @@
name: "FingerprintingCanvasMeasureTextNoise",
},
{
@@ -19,7 +19,7 @@
CloseTabs({GetWebContentsAt(index)}, close_types);
}
@@ -3020,9 +3025,13 @@ TabStripModel::GetGroupsDestroyedFromRem
@@ -3028,9 +3033,13 @@ TabStripModel::GetGroupsDestroyedFromRem
void TabStripModel::ExecuteCloseTabsByIndices(
base::RepeatingCallback<std::vector<int>()> get_indices_to_close,
uint32_t close_types) {
@@ -99,7 +99,7 @@
+ }
+
+ if (!manager->IsComponentExtensionResource(
+ extension->path(), base::FilePath(path), &resource_id)) {
+ extension->path(), base::FilePath::FromUTF8Unsafe(path), &resource_id)) {
+ return base::unexpected(base::StringPrintf(
+ "%s/%s is not a component extension resource",
+ base::UTF16ToUTF8(extension->path().LossyDisplayName()), path));
@@ -0,0 +1,131 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1416,6 +1416,11 @@ inline constexpr char kExtensionCommands
inline constexpr char kPluginsAlwaysOpenPdfExternally[] =
"plugins.always_open_pdf_externally";
+// Boolean indicating that the user has rejected setting
+// the browser as default for an indefinite amount of time.
+inline constexpr char kHeliumDefaultBrowserRejected[] =
+ "helium.browser.default_browser_infobar_rejected";
+
// Int64 containing the internal value of the time at which the default browser
// infobar was last dismissed by the user.
inline constexpr char kDefaultBrowserLastDeclined[] =
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -77,6 +77,8 @@ void RegisterBrowserPrefs(PrefRegistrySi
registry->RegisterIntegerPref(prefs::kDefaultBrowserDeclinedCount, 0);
registry->RegisterTimePref(prefs::kDefaultBrowserFirstShownTime,
base::Time());
+ registry->RegisterBooleanPref(prefs::kHeliumDefaultBrowserRejected, false);
+
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
registry->RegisterTimePref(prefs::kPdfInfoBarLastShown, base::Time());
registry->RegisterIntegerPref(prefs::kPdfInfoBarTimesShown, 0);
--- a/chrome/browser/ui/startup/infobar_utils.cc
+++ b/chrome/browser/ui/startup/infobar_utils.cc
@@ -208,6 +208,11 @@ void AddInfoBarsIfNecessary(Browser* bro
return;
}
+ PrefService* local_state = g_browser_process->local_state();
+ if (local_state && local_state->GetBoolean(prefs::kHeliumDefaultBrowserRejected)) {
+ return;
+ }
+
base::OnceCallback<void(bool)> default_browser_prompt_shown_callback =
base::DoNothing();
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
--- a/components/infobars/core/confirm_infobar_delegate.h
+++ b/components/infobars/core/confirm_infobar_delegate.h
@@ -81,6 +81,8 @@ class ConfirmInfoBarDelegate : public in
// custom layout to show the link text before the button.
virtual bool ShouldShowLinkBeforeButton() const;
+ virtual bool OkButtonShouldAlwaysLead() const;
+
#if BUILDFLAG(IS_IOS)
// Returns whether or not a tint should be applied to the icon background.
// Defaults to true.
--- a/components/infobars/core/confirm_infobar_delegate.cc
+++ b/components/infobars/core/confirm_infobar_delegate.cc
@@ -67,6 +67,10 @@ bool ConfirmInfoBarDelegate::ShouldShowL
return false;
}
+bool ConfirmInfoBarDelegate::OkButtonShouldAlwaysLead() const {
+ return false;
+}
+
#if BUILDFLAG(IS_IOS)
bool ConfirmInfoBarDelegate::UseIconBackgroundTint() const {
return true;
--- a/chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.cc
+++ b/chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.cc
@@ -112,13 +112,15 @@ std::u16string DefaultBrowserInfoBarDele
}
int DefaultBrowserInfoBarDelegate::GetButtons() const {
- return BUTTON_OK;
+ return BUTTON_OK | BUTTON_CANCEL;
}
std::u16string DefaultBrowserInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const {
- DCHECK_EQ(BUTTON_OK, button);
- return l10n_util::GetStringUTF16(IDS_DEFAULT_BROWSER_INFOBAR_OK_BUTTON_LABEL);
+ DCHECK(button == BUTTON_OK || button == BUTTON_CANCEL);
+ return l10n_util::GetStringUTF16(
+ button == BUTTON_OK ? IDS_DEFAULT_BROWSER_INFOBAR_OK_BUTTON_LABEL
+ : IDS_CARET_BROWSING_DO_NOT_ASK);
}
bool DefaultBrowserInfoBarDelegate::Accept() {
@@ -155,6 +157,21 @@ bool DefaultBrowserInfoBarDelegate::Acce
return ConfirmInfoBarDelegate::Accept();
}
+bool DefaultBrowserInfoBarDelegate::Cancel() {
+ PrefService* local_state = g_browser_process->local_state();
+ if (!local_state) {
+ return true;
+ }
+
+ local_state->SetBoolean(prefs::kHeliumDefaultBrowserRejected, true);
+
+ return ConfirmInfoBarDelegate::Cancel();
+}
+
bool DefaultBrowserInfoBarDelegate::ShouldHideInFullscreen() const {
return true;
}
+
+bool DefaultBrowserInfoBarDelegate::OkButtonShouldAlwaysLead() const {
+ return true;
+}
--- a/chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.h
+++ b/chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.h
@@ -61,7 +61,9 @@ class DefaultBrowserInfoBarDelegate : pu
int GetButtons() const override;
std::u16string GetButtonLabel(InfoBarButton button) const override;
bool Accept() override;
+ bool Cancel() override;
bool ShouldHideInFullscreen() const override;
+ bool OkButtonShouldAlwaysLead() const override;
// The WebContents's corresponding profile.
raw_ptr<Profile> profile_;
--- a/chrome/browser/ui/views/infobars/confirm_infobar.cc
+++ b/chrome/browser/ui/views/infobars/confirm_infobar.cc
@@ -123,7 +123,9 @@ void ConfirmInfoBar::Layout(PassKey) {
}
if constexpr (!views::PlatformStyle::kIsOkButtonLeading) {
- std::ranges::reverse(order_of_buttons);
+ if (!GetDelegate()->OkButtonShouldAlwaysLead()) {
+ std::ranges::reverse(order_of_buttons);
+ }
}
for (views::MdTextButton* button : order_of_buttons) {
+7 -7
View File
@@ -722,7 +722,7 @@
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1956,6 +1956,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1957,6 +1957,9 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
{"heliumServicesToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
@@ -734,7 +734,7 @@
{"heliumExtProxyToggleDescription",
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1921,6 +1921,12 @@
@@ -1931,6 +1931,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading and proxying extensions">
When enabled, Helium will proxy extension downloads and updates to protect your privacy. When disabled, downloading and updating extensions will not work.
</message>
@@ -763,7 +763,7 @@
label="$i18n{heliumExtProxyToggle}"
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -200,6 +200,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -204,6 +204,7 @@ void RegisterBrowserUserPrefs(user_prefs
{
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
@@ -796,7 +796,7 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/components/omnibox/browser/omnibox_edit_model.cc
+++ b/components/omnibox/browser/omnibox_edit_model.cc
@@ -824,6 +824,17 @@ bool OmniboxEditModel::AcceptKeyword(
@@ -826,6 +826,17 @@ bool OmniboxEditModel::AcceptKeyword(
controller_->StopAutocomplete(/*clear_result=*/false);
@@ -814,7 +814,7 @@
is_keyword_hint_ = false;
keyword_mode_entry_method_ = entry_method;
if (original_user_text_with_keyword_.empty()) {
@@ -866,9 +877,6 @@ bool OmniboxEditModel::AcceptKeyword(
@@ -868,9 +879,6 @@ bool OmniboxEditModel::AcceptKeyword(
}
base::RecordAction(base::UserMetricsAction("AcceptedKeywordHint"));
@@ -824,7 +824,7 @@
EmitEnteredKeywordModeHistogram(entry_method, turl, !user_text_.empty());
return true;
}
@@ -1520,7 +1528,13 @@ void OmniboxEditModel::InternalSetUserTe
@@ -1522,7 +1530,13 @@ void OmniboxEditModel::InternalSetUserTe
std::u16string OmniboxEditModel::MaybeStripKeyword(
const std::u16string& text) const {
@@ -839,7 +839,7 @@
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
: text;
}
@@ -2779,9 +2793,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
@@ -2781,9 +2795,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
return false;
size_t keyword_length = new_text.length() - 1;
@@ -102,7 +102,7 @@ TODO: guard services_page.html with is_mac
</div>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1966,6 +1966,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1967,6 +1967,10 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
{"heliumExtProxyToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION},
@@ -126,7 +126,7 @@ TODO: guard services_page.html with is_mac
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -211,6 +211,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -215,6 +215,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
@@ -136,7 +136,7 @@ TODO: guard services_page.html with is_mac
registry->RegisterBooleanPref(
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1933,6 +1933,12 @@
@@ -1943,6 +1943,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
</message>
@@ -1,55 +0,0 @@
--- a/chrome/app/chrome_dll.rc
+++ b/chrome/app/chrome_dll.rc
@@ -49,7 +49,7 @@ BEGIN
"W", IDC_CLOSE_WINDOW, VIRTKEY, CONTROL, SHIFT
"I", IDC_DEV_TOOLS, VIRTKEY, CONTROL, SHIFT
"J", IDC_DEV_TOOLS_CONSOLE, VIRTKEY, CONTROL, SHIFT
- "C", IDC_DEV_TOOLS_INSPECT, VIRTKEY, CONTROL, SHIFT
+ "C", IDC_COPY_URL, VIRTKEY, CONTROL, SHIFT
VK_F12, IDC_DEV_TOOLS_TOGGLE, VIRTKEY
"F", IDC_FIND, VIRTKEY, CONTROL
"G", IDC_FIND_NEXT, VIRTKEY, CONTROL
--- a/chrome/browser/global_keyboard_shortcuts_mac.mm
+++ b/chrome/browser/global_keyboard_shortcuts_mac.mm
@@ -145,7 +145,7 @@ const std::vector<KeyboardShortcutData>&
{true, true, false, false, kVK_ANSI_M, IDC_SHOW_AVATAR_MENU},
{true, false, false, true, kVK_ANSI_L, IDC_SHOW_DOWNLOADS},
- {true, true, false, false, kVK_ANSI_C, IDC_DEV_TOOLS_INSPECT},
+ {true, true, false, false, kVK_ANSI_C, IDC_COPY_URL},
{true, false, false, true, kVK_ANSI_C, IDC_DEV_TOOLS_INSPECT},
{true, false, false, true, kVK_DownArrow, IDC_FOCUS_NEXT_PANE},
{true, false, false, true, kVK_UpArrow, IDC_FOCUS_PREVIOUS_PANE},
--- a/chrome/browser/ui/cocoa/accelerators_cocoa.mm
+++ b/chrome/browser/ui/cocoa/accelerators_cocoa.mm
@@ -37,7 +37,7 @@ const struct AcceleratorMapping {
{IDC_CUT, ui::EF_COMMAND_DOWN, ui::VKEY_X},
{IDC_DEV_TOOLS, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_I},
{IDC_DEV_TOOLS_CONSOLE, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_J},
- {IDC_DEV_TOOLS_INSPECT, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_C},
+ {IDC_COPY_URL, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN, ui::VKEY_C},
{IDC_FIND, ui::EF_COMMAND_DOWN, ui::VKEY_F},
{IDC_NEW_INCOGNITO_WINDOW, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN,
ui::VKEY_N},
--- a/chrome/browser/ui/accelerator_table.cc
+++ b/chrome/browser/ui/accelerator_table.cc
@@ -269,7 +269,7 @@ const AcceleratorMapping kDevToolsAccele
{ui::VKEY_J, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
IDC_DEV_TOOLS_CONSOLE},
{ui::VKEY_C, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
- IDC_DEV_TOOLS_INSPECT},
+ IDC_COPY_URL},
{ui::VKEY_U, ui::EF_CONTROL_DOWN, IDC_VIEW_SOURCE},
#endif // !BUILDFLAG(IS_MAC)
};
--- a/chrome/browser/ui/cocoa/main_menu_builder.mm
+++ b/chrome/browser/ui/cocoa/main_menu_builder.mm
@@ -189,6 +189,8 @@ NSMenuItem* BuildEditMenu(NSApplication*
Item(IDS_COPY_MAC)
.tag(IDC_CONTENT_CONTEXT_COPY)
.action(@selector(copy:)),
+ Item(IDS_COPY_URL)
+ .command_id(IDC_COPY_URL),
Item(IDS_PASTE_MAC)
.tag(IDC_CONTENT_CONTEXT_PASTE)
.action(@selector(paste:)),
@@ -0,0 +1,12 @@
--- a/chrome/browser/ui/views/webid/fedcm_account_selection_view_desktop.cc
+++ b/chrome/browser/ui/views/webid/fedcm_account_selection_view_desktop.cc
@@ -1279,6 +1279,9 @@ gfx::Rect FedCmAccountSelectionView::Get
void FedCmAccountSelectionView::ShouldShowDialog(bool& should_show) {
if (dialog_type_ == DialogType::BUBBLE) {
+ should_show = false;
+ return;
+
// Hide the bubble dialog if it can't fit.
if (!CanFitInWebContents()) {
should_show = false;
@@ -0,0 +1,11 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -724,7 +724,7 @@ bool HasTabSearchToolbarButton() {
BASE_FEATURE(kNonMilestoneUpdateToast,
"NonMilestoneUpdateToast",
- base::FEATURE_ENABLED_BY_DEFAULT);
+ base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kBookmarkTabGroupConversion,
"BookmarkTabGroupConversion",
@@ -23,7 +23,7 @@
E(kActionShowPasswordManager, IDC_SHOW_PASSWORD_MANAGER) \
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -117,6 +117,9 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -119,6 +119,9 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kPinSplitTabButton, false,
pref_registration_flags);
@@ -21,7 +21,7 @@
E(kActionShowPasswordManager, IDC_SHOW_PASSWORD_MANAGER) \
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -119,6 +119,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -121,6 +121,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(
prefs::kShowAvatarButton, true);
@@ -0,0 +1,251 @@
--- a/chrome/app/chrome_command_ids.h
+++ b/chrome/app/chrome_command_ids.h
@@ -92,9 +92,11 @@
#define IDC_WEB_APP_MENU_APP_INFO 34063
#define IDC_WEB_APP_UPGRADE_DIALOG 34064
+// Helium commands
+#define IDC_COPY_OR_INSPECT_SHORTCUT 34080
+
#if BUILDFLAG(IS_CHROMEOS)
// Move window to other user commands
-#define IDC_VISIT_DESKTOP_OF_LRU_USER_2 34080
#define IDC_VISIT_DESKTOP_OF_LRU_USER_3 34081
#define IDC_VISIT_DESKTOP_OF_LRU_USER_4 34082
#define IDC_VISIT_DESKTOP_OF_LRU_USER_5 34083
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1509,6 +1509,11 @@ inline constexpr char kPageColorsBlockLi
inline constexpr char kPrefersDefaultScrollbarStyles[] =
"settings.a11y.prefers_default_scrollbar_styles";
+// Boolean that indicates whether the user has enabled the keyboard shortcut
+// for copying the current page URL to the clipboard.
+inline constexpr char kCopyPageUrlShortcut[] =
+ "helium.settings.a11y.copy_page_url_shortcut";
+
#if BUILDFLAG(IS_MAC)
// Boolean that indicates whether the application should show the info bar
// asking the user to set up automatic updates when Keystone promotion is
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -142,6 +142,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterListPref(prefs::kWebRtcLocalIpsAllowedUrls);
registry->RegisterBooleanPref(prefs::kWebRtcTextLogCollectionAllowed, false);
+ registry->RegisterBooleanPref(prefs::kCopyPageUrlShortcut, true);
+
// We need to register the type of these preferences in order to query
// them even though they're only typically controlled via policy.
registry->RegisterBooleanPref(policy::policy_prefs::kHideWebStoreIcon, false);
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -387,7 +387,10 @@ bool BrowserCommandController::IsReserve
command_id == IDC_NEW_INCOGNITO_WINDOW || command_id == IDC_NEW_TAB ||
command_id == IDC_NEW_WINDOW || command_id == IDC_RESTORE_TAB ||
command_id == IDC_SELECT_NEXT_TAB ||
- command_id == IDC_SELECT_PREVIOUS_TAB || command_id == IDC_EXIT;
+ command_id == IDC_SELECT_PREVIOUS_TAB || command_id == IDC_EXIT ||
+ command_id == IDC_COPY_OR_INSPECT_SHORTCUT || command_id == IDC_DEV_TOOLS ||
+ command_id == IDC_DEV_TOOLS_INSPECT || command_id == IDC_DEV_TOOLS_TOGGLE ||
+ command_id == IDC_DEV_TOOLS_CONSOLE || command_id == IDC_TAB_SEARCH;
}
void BrowserCommandController::TabStateChanged() {
@@ -1143,6 +1146,14 @@ bool BrowserCommandController::ExecuteCo
case IDC_DUPLICATE_TARGET_TAB:
DuplicateKeyboardFocusedTab(browser_);
break;
+ case IDC_COPY_OR_INSPECT_SHORTCUT: {
+ PrefService* prefs = profile()->GetPrefs();
+ bool copy = prefs->GetBoolean(prefs::kCopyPageUrlShortcut);
+
+ return ExecuteCommandWithDisposition(
+ copy ? IDC_COPY_URL : IDC_DEV_TOOLS_INSPECT,
+ disposition, time_stamp);
+ }
// Hosted App commands
case IDC_COPY_URL:
CopyURL(browser_, browser_->tab_strip_model()->GetActiveWebContents());
@@ -1888,6 +1899,12 @@ void BrowserCommandController::UpdateCom
bool dev_tools_enabled = DevToolsWindow::AllowDevToolsFor(
profile(), browser_->tab_strip_model()->GetActiveWebContents());
+
+ PrefService* prefs = profile()->GetPrefs();
+ bool copy = prefs->GetBoolean(prefs::kCopyPageUrlShortcut);
+ command_updater_.UpdateCommandEnabled(IDC_COPY_OR_INSPECT_SHORTCUT,
+ copy || dev_tools_enabled);
+
command_updater_.UpdateCommandEnabled(IDC_DEV_TOOLS, dev_tools_enabled);
command_updater_.UpdateCommandEnabled(IDC_DEV_TOOLS_CONSOLE,
dev_tools_enabled);
--- a/chrome/browser/ui/accelerator_table.cc
+++ b/chrome/browser/ui/accelerator_table.cc
@@ -268,8 +268,10 @@ const AcceleratorMapping kDevToolsAccele
{ui::VKEY_I, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, IDC_DEV_TOOLS},
{ui::VKEY_J, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
IDC_DEV_TOOLS_CONSOLE},
- {ui::VKEY_C, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
+ {ui::VKEY_E, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
IDC_DEV_TOOLS_INSPECT},
+ {ui::VKEY_C, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
+ IDC_COPY_OR_INSPECT_SHORTCUT},
{ui::VKEY_U, ui::EF_CONTROL_DOWN, IDC_VIEW_SOURCE},
#endif // !BUILDFLAG(IS_MAC)
};
--- a/chrome/browser/global_keyboard_shortcuts_mac.mm
+++ b/chrome/browser/global_keyboard_shortcuts_mac.mm
@@ -145,7 +145,9 @@ const std::vector<KeyboardShortcutData>&
{true, true, false, false, kVK_ANSI_M, IDC_SHOW_AVATAR_MENU},
{true, false, false, true, kVK_ANSI_L, IDC_SHOW_DOWNLOADS},
- {true, true, false, false, kVK_ANSI_C, IDC_DEV_TOOLS_INSPECT},
+ {true, true, false, false, kVK_ANSI_I, IDC_DEV_TOOLS},
+ {true, true, false, false, kVK_ANSI_E, IDC_DEV_TOOLS_INSPECT},
+ {true, true, false, false, kVK_ANSI_C, IDC_COPY_OR_INSPECT_SHORTCUT},
{true, false, false, true, kVK_ANSI_C, IDC_DEV_TOOLS_INSPECT},
{true, false, false, true, kVK_DownArrow, IDC_FOCUS_NEXT_PANE},
{true, false, false, true, kVK_UpArrow, IDC_FOCUS_PREVIOUS_PANE},
--- a/chrome/browser/ui/cocoa/accelerators_cocoa.mm
+++ b/chrome/browser/ui/cocoa/accelerators_cocoa.mm
@@ -37,7 +37,8 @@ const struct AcceleratorMapping {
{IDC_CUT, ui::EF_COMMAND_DOWN, ui::VKEY_X},
{IDC_DEV_TOOLS, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_I},
{IDC_DEV_TOOLS_CONSOLE, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_J},
- {IDC_DEV_TOOLS_INSPECT, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_C},
+ {IDC_DEV_TOOLS_INSPECT, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_E},
+ {IDC_COPY_OR_INSPECT_SHORTCUT, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN, ui::VKEY_C},
{IDC_FIND, ui::EF_COMMAND_DOWN, ui::VKEY_F},
{IDC_NEW_INCOGNITO_WINDOW, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN,
ui::VKEY_N},
@@ -73,9 +74,6 @@ const struct AcceleratorMapping {
// We used to define IDC_CLOSE_WINDOW here. Instead, see
// AcceleratorForCloseWindow().
{IDC_CLOSE_TAB, ui::EF_COMMAND_DOWN, ui::VKEY_W},
-
- {IDC_EMAIL_PAGE_LOCATION, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN,
- ui::VKEY_I},
#if BUILDFLAG(ENABLE_PRINTING)
{IDC_BASIC_PRINT, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_P},
#endif // ENABLE_PRINTING
--- a/chrome/app/chrome_dll.rc
+++ b/chrome/app/chrome_dll.rc
@@ -49,7 +49,8 @@ BEGIN
"W", IDC_CLOSE_WINDOW, VIRTKEY, CONTROL, SHIFT
"I", IDC_DEV_TOOLS, VIRTKEY, CONTROL, SHIFT
"J", IDC_DEV_TOOLS_CONSOLE, VIRTKEY, CONTROL, SHIFT
- "C", IDC_DEV_TOOLS_INSPECT, VIRTKEY, CONTROL, SHIFT
+ "E", IDC_DEV_TOOLS_INSPECT, VIRTKEY, CONTROL, SHIFT
+ "C", IDC_COPY_OR_INSPECT_SHORTCUT, VIRTKEY, CONTROL, SHIFT
VK_F12, IDC_DEV_TOOLS_TOGGLE, VIRTKEY
"F", IDC_FIND, VIRTKEY, CONTROL
"G", IDC_FIND_NEXT, VIRTKEY, CONTROL
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -579,6 +579,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
(*s_allowlist)[::prefs::kCaretBrowsingEnabled] =
settings_api::PrefType::kBoolean;
+ (*s_allowlist)[::prefs::kCopyPageUrlShortcut] =
+ settings_api::PrefType::kBoolean;
#if BUILDFLAG(IS_CHROMEOS)
// Accounts / Users / People.
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -193,6 +193,16 @@
Shows a confirmation when you copy links, images, or videos
</message>
</if>
+ <if expr="is_macosx">
+ <message name="IDS_SETTINGS_ACCESSIBILITY_COPY_PAGE_URL_SHORTCUT" desc="Toggle in settings that allows you to enable the keyboard shortcut that copies the current page URL to the clipboard. It's enabled by default.">
+ Enable quick page link copying with ⌘+Shift+C
+ </message>
+ </if>
+ <if expr="not is_macosx">
+ <message name="IDS_SETTINGS_ACCESSIBILITY_COPY_PAGE_URL_SHORTCUT" desc="Toggle in settings that allows you to enable the keyboard shortcut that copies the current page URL to the clipboard. It's enabled by default.">
+ Enable quick page link copying with Ctrl+Shift+C
+ </message>
+ </if>
<!-- Appearance Page -->
<message name="IDS_SETTINGS_APPEARANCE" desc="Name of the settings page which displays appearance preferences.">
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -276,6 +276,7 @@ void AddA11yStrings(content::WebUIDataSo
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC)
{"axTreeFixingTitle", IDS_SETTINGS_AX_TREE_FIXING_TITLE},
{"axTreeFixingSubtitle", IDS_SETTINGS_AX_TREE_FIXING_SUBTITLE},
+ {"copyPageUrlShortcut", IDS_SETTINGS_ACCESSIBILITY_COPY_PAGE_URL_SHORTCUT},
};
html_source->AddLocalizedStrings(kLocalizedStrings);
--- a/chrome/browser/resources/settings/a11y_page/a11y_page.html
+++ b/chrome/browser/resources/settings/a11y_page/a11y_page.html
@@ -99,5 +99,9 @@
sub-label="$i18n{toastAlertLevelDescription}">
</settings-toggle-button>
</if>
+ <settings-toggle-button id="CopyPageUrlShortcut" class="hr"
+ pref="{{prefs.helium.settings.a11y.copy_page_url_shortcut}}"
+ label="$i18n{copyPageUrlShortcut}">
+ </settings-toggle-button>
</div>
</settings-section>
--- a/third_party/devtools-frontend/src/front_end/panels/elements/elements-meta.ts
+++ b/third_party/devtools-frontend/src/front_end/panels/elements/elements-meta.ts
@@ -446,11 +446,11 @@ UI.ActionRegistration.registerActionExte
iconClass: UI.ActionRegistration.IconClass.LARGEICON_NODE_SEARCH,
bindings: [
{
- shortcut: 'Ctrl+Shift+C',
+ shortcut: 'Ctrl+Shift+E',
platform: UI.ActionRegistration.Platforms.WINDOWS_LINUX,
},
{
- shortcut: 'Meta+Shift+C',
+ shortcut: 'Meta+Shift+E',
platform: UI.ActionRegistration.Platforms.MAC,
},
],
--- a/chrome/browser/ui/cocoa/main_menu_builder.mm
+++ b/chrome/browser/ui/cocoa/main_menu_builder.mm
@@ -189,6 +189,8 @@ NSMenuItem* BuildEditMenu(NSApplication*
Item(IDS_COPY_MAC)
.tag(IDC_CONTENT_CONTEXT_COPY)
.action(@selector(copy:)),
+ Item(IDS_COPY_URL)
+ .command_id(IDC_COPY_URL),
Item(IDS_PASTE_MAC)
.tag(IDC_CONTENT_CONTEXT_PASTE)
.action(@selector(paste:)),
--- a/chrome/browser/ui/cocoa/share_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/share_menu_controller.mm
@@ -99,12 +99,6 @@ bool CanShare() {
// to fetch sharing services that can handle the NSURL type.
NSArray* services = [NSSharingService
sharingServicesForItems:@[ [NSURL URLWithString:@"https://google.com"] ]];
- NSMenuItem* email = [[NSMenuItem alloc]
- initWithTitle:l10n_util::GetNSString(IDS_EMAIL_LINK_MAC)
- action:@selector(emailLink:)
- keyEquivalent:[self keyEquivalentForMail]];
- email.target = self;
- [menu addItem:email];
for (NSSharingService* service in services) {
// Email share service causes mysterious crashes, so share directly.
// See https://crbug.com/356643975
@@ -298,13 +292,4 @@ bool CanShare() {
return item;
}
-- (NSString*)keyEquivalentForMail {
- ui::Accelerator accelerator;
- bool found = GetDefaultMacAcceleratorForCommandId(IDC_EMAIL_PAGE_LOCATION,
- &accelerator);
- DCHECK(found);
- return GetKeyEquivalentAndModifierMaskFromAccelerator(accelerator)
- .keyEquivalent;
-}
-
@end
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -257,6 +257,9 @@
@@ -267,6 +267,9 @@
<message name="IDS_SETTINGS_COLOR_SCHEME_MODE" desc="Text of the label for selecting a color scheme mode for the browser.">
Mode
</message>
@@ -39,7 +39,7 @@
label="$i18n{showTabGroupsInBookmarksBar}">
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -104,6 +104,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -106,6 +106,8 @@ void RegisterBrowserUserPrefs(user_prefs
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF;
#endif
@@ -80,7 +80,7 @@
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -510,6 +510,7 @@ void AddAppearanceStrings(content::WebUI
@@ -511,6 +511,7 @@ void AddAppearanceStrings(content::WebUI
{"lightMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_LIGHT_LABEL},
{"darkMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_DARK_LABEL},
{"systemMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_SYSTEM_LABEL},
@@ -1,6 +1,6 @@
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -880,7 +880,7 @@ BASE_FEATURE(HttpsFirstBalancedMode, bas
@@ -891,7 +891,7 @@ BASE_FEATURE(HttpsFirstBalancedMode, bas
// Automatically enables HTTPS-First Mode in a balanced configuration when
// possible.
BASE_FEATURE(HttpsFirstBalancedModeAutoEnable,
@@ -1,14 +0,0 @@
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -387,7 +387,10 @@ bool BrowserCommandController::IsReserve
command_id == IDC_NEW_INCOGNITO_WINDOW || command_id == IDC_NEW_TAB ||
command_id == IDC_NEW_WINDOW || command_id == IDC_RESTORE_TAB ||
command_id == IDC_SELECT_NEXT_TAB ||
- command_id == IDC_SELECT_PREVIOUS_TAB || command_id == IDC_EXIT;
+ command_id == IDC_SELECT_PREVIOUS_TAB || command_id == IDC_EXIT ||
+ command_id == IDC_COPY_URL || command_id == IDC_DEV_TOOLS ||
+ command_id == IDC_DEV_TOOLS_INSPECT || command_id == IDC_DEV_TOOLS_TOGGLE ||
+ command_id == IDC_DEV_TOOLS_CONSOLE;
}
void BrowserCommandController::TabStateChanged() {
@@ -177,7 +177,7 @@
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -200,6 +200,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -204,6 +204,7 @@ void RegisterBrowserUserPrefs(user_prefs
{
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
@@ -201,7 +201,7 @@
</div>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1956,6 +1956,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1957,6 +1957,10 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
{"heliumServicesToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
@@ -214,7 +214,7 @@
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1915,6 +1915,12 @@
@@ -1925,6 +1925,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of all Helium services">
When enabled, Helium will be able to connect to anonymous web services to provide additional functionality. When disabled, additional features will not work.
</message>
@@ -118,7 +118,7 @@
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -202,6 +202,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -206,6 +206,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
registry->RegisterBooleanPref(prefs::kHeliumBangsEnabled, true);
registry->RegisterBooleanPref(prefs::kHeliumExtProxyEnabled, true);
@@ -144,7 +144,7 @@
</div>
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1927,6 +1927,12 @@
@@ -1937,6 +1937,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
Helium will fetch a list of bangs that help you browse the Internet faster, such as !w or !gh. When disabled, bangs will not work.
</message>
@@ -159,7 +159,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1959,6 +1959,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1960,6 +1960,9 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
{"heliumBangsToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
+16
View File
@@ -603,3 +603,19 @@
raw_ptr<TabStripModel> tab_strip_model_ = nullptr;
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -498,8 +498,12 @@ void ReloadInternal(Browser* browser,
browser->tab_strip_model()->GetActiveWebContents();
std::vector<WebContents*> tabs_to_reload;
+ const bool only_active_split_tab_selected =
+ browser->tab_strip_model()->IsActiveTabSplit() &&
+ browser->tab_strip_model()->selection_model().size() == 2;
- if (base::FeatureList::IsEnabled(features::kReloadSelectionModel)) {
+ if (base::FeatureList::IsEnabled(features::kReloadSelectionModel)
+ || only_active_split_tab_selected) {
tabs_to_reload.push_back(
browser->tab_strip_model()->GetActiveWebContents());
} else {
@@ -68,7 +68,7 @@
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -212,6 +212,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -216,6 +216,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
registry->RegisterBooleanPref(prefs::kHeliumUpdateFetchingEnabled, true);
@@ -217,7 +217,7 @@
if ( bin.assetSourceRegistry instanceof Object ) {
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1939,6 +1939,12 @@
@@ -1949,6 +1949,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION" desc="Description of the toggle for automatic update downloads">
Helium will automatically download and install browser updates as they become available. We recommend keeping this setting enabled to ensure you get the latest security patches and features.
</message>
@@ -246,7 +246,7 @@
</div>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1970,6 +1970,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1971,6 +1971,10 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_HELIUM_SERVICES_UPDATE},
{"heliumUpdatesToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION},
@@ -9,7 +9,7 @@
#if defined(USE_AURA)
registry->RegisterBooleanPref(prefs::kOverscrollHistoryNavigationEnabled,
@@ -144,7 +144,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -146,7 +146,7 @@ void RegisterBrowserUserPrefs(user_prefs
// We need to register the type of these preferences in order to query
// them even though they're only typically controlled via policy.
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -240,7 +240,7 @@
@@ -250,7 +250,7 @@
<message name="IDS_SETTINGS_RESET_TO_DEFAULT" desc="Name of the control which resets a browser setting back to the default value">
Reset to default
</message>
@@ -9,7 +9,7 @@
<message name="IDS_SETTINGS_RESET_TO_DEFAULT_THEME" desc="Accessibility label of the button which resets the browser theme back to the default value">
Reset to default theme
</message>
@@ -275,6 +275,9 @@
@@ -285,6 +285,9 @@
<message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
Automatically pin new tab groups created on any device to the bookmarks bar
</message>
@@ -21,7 +21,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -517,7 +517,7 @@ void AddAppearanceStrings(content::WebUI
@@ -518,7 +518,7 @@ void AddAppearanceStrings(content::WebUI
IDS_SETTINGS_ALLOW_SPLIT_VIEW_DRAG_AND_DROP},
{"showTabGroupsInBookmarksBar",
IDS_SETTINGS_SHOW_TAB_GROUPS_IN_BOOKMARKS_BAR},
@@ -30,7 +30,7 @@
{"hoverCardTitle", IDS_SETTINGS_HOVER_CARD_TITLE},
{"showHoverCardImages", IDS_SETTINGS_SHOW_HOVER_CARD_IMAGES},
{"showHoverCardMemoryUsage", IDS_SETTINGS_SHOW_HOVER_CARD_MEMORY_USAGE},
@@ -549,9 +549,7 @@ void AddAppearanceStrings(content::WebUI
@@ -550,9 +550,7 @@ void AddAppearanceStrings(content::WebUI
{"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
{"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
#endif
+1 -1
View File
@@ -11,7 +11,7 @@
{"loading", IDS_HISTORY_LOADING},
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1796,7 +1796,7 @@ void AddSyncControlsStrings(content::Web
@@ -1797,7 +1797,7 @@ void AddSyncControlsStrings(content::Web
void AddPeopleStrings(content::WebUIDataSource* html_source, Profile* profile) {
static constexpr webui::LocalizedString kLocalizedStrings[] = {
// Top level people strings:
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1890,6 +1890,9 @@
@@ -1900,6 +1900,9 @@
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT" desc="The text of a confirmation dialog that confirms that the user want to send the 'Do Not Track' header">
Enabling "Do Not Track" means that a request will be included with your browsing traffic. Any effect depends on whether a website responds to the request, and how the request is interpreted. For example, some websites may respond to this request by showing you ads that aren't based on other websites you've visited. Many websites will still collect and use your browsing data - for example to improve security, to provide content, services, ads and recommendations on their websites, and to generate reporting statistics.
</message>
@@ -10,7 +10,7 @@
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL" desc="The accessibility label for a link to learn more about Do Not Track">
Learn more about Do Not Track
</message>
@@ -3091,6 +3094,9 @@
@@ -3101,6 +3104,9 @@
<message name="IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_DESCRIPTION" desc="Description of the section on the Tracking Protection settings page that lets users manage which sites are allowed to use third-party cookies. Explains how to use a wildcard to create an exception for an entire domain.">
Affects the sites listed here. Inserting “[*.]” before a domain name creates an exception for the entire domain. For example, adding “[*.]google.com” means that third-party cookies can also be active for mail.google.com, because it’s part of google.com.
</message>
@@ -22,7 +22,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1944,7 +1944,7 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1945,7 +1945,7 @@ void AddPrivacyStrings(content::WebUIDat
{"privacyPageMore", IDS_SETTINGS_PRIVACY_MORE},
{"doNotTrack", IDS_SETTINGS_ENABLE_DO_NOT_TRACK},
{"doNotTrackDialogTitle", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TITLE},
@@ -31,7 +31,7 @@
{"doNotTrackDialogLearnMoreA11yLabel",
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
// TODO(crbug.com/40122957): This string is no longer used. Remove.
@@ -2639,7 +2639,7 @@ void AddSiteSettingsStrings(content::Web
@@ -2640,7 +2640,7 @@ void AddSiteSettingsStrings(content::Web
{"trackingProtectionSitesAllowedCookiesTitle",
IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_TITLE},
{"trackingProtectionSitesAllowedCookiesDescription",
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1903,6 +1903,12 @@
@@ -1913,6 +1913,12 @@
users to manage security settings">
Security
</message>
@@ -15,7 +15,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1949,9 +1949,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1950,9 +1950,9 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
// TODO(crbug.com/40122957): This string is no longer used. Remove.
{"permissionsPageTitle", IDS_SETTINGS_PERMISSIONS},
@@ -24,7 +24,7 @@
Signed in to <ph name="EMAIL">$1<ex>abcd@google.com</ex></ph>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1652,8 +1652,8 @@ void AddPersonalizationOptionsStrings(co
@@ -1653,8 +1653,8 @@ void AddPersonalizationOptionsStrings(co
{"enablePersonalizationLoggingDesc",
IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC},
{"spellingDescription", IDS_SETTINGS_SPELLING_PREF_DESC},
+4 -2
View File
@@ -123,8 +123,9 @@ helium/core/search/fix-search-engine-icons.patch
helium/core/search/force-eu-search-features.patch
helium/core/search/remove-description-snippet-deps.patch
helium/core/copy-page-url-shortcut.patch
helium/core/keyboard-shortcuts.patch
helium/core/update-default-browser-prefs.patch
helium/core/add-default-browser-reject-button.patch
helium/core/proxy-extension-downloads.patch
helium/core/reenable-update-checks.patch
helium/core/add-native-bangs.patch
@@ -157,7 +158,6 @@ helium/core/exclude-irrelevant-flags.patch
helium/core/disable-outdated-build-detector.patch
helium/core/remove-dead-toolbar-actions.patch
helium/core/protect-browser-keyboard-shortcuts.patch
helium/core/add-component-l10n-support.patch
helium/core/add-component-managed-schema-support.patch
helium/core/ublock-setup-sources.patch
@@ -175,6 +175,8 @@ helium/core/enable-parallel-downloading.patch
helium/core/infinite-tab-freezing.patch
helium/core/disable-touch-ui.patch
helium/core/open-new-tabs-next-to-active-tab-option.patch
helium/core/disable-update-toast.patch
helium/core/disable-fedcm-bubble.patch
helium/settings/move-search-suggest.patch
helium/settings/remove-autofill.patch
+1 -1
View File
@@ -1 +1 @@
3
6
Regular → Executable
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 The Helium Authors
# You can use, redistribute, and/or modify this source code under
# the terms of the GPL-3.0 license that can be found in the LICENSE file.
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 The Helium Authors
# You can use, redistribute, and/or modify this source code under
# the terms of the GPL-3.0 license that can be found in the LICENSE file.