Enable menu on reload button: #1147 Add reload options on right clicking refresh button

This commit is contained in:
Carmelo Messina
2024-05-25 13:17:01 +02:00
parent 2811f2279f
commit 7809a7f31c
2 changed files with 43 additions and 0 deletions
+1
View File
@@ -289,6 +289,7 @@ Allow-building-without-supervised-users.patch
Keep-ComputePressure-disabled.patch
Android-Toolbar-Scroll-Ablation-setting.patch
Keep-disabled-WebViewMediaIntegrityApi.patch
Enable-menu-on-reload-button.patch
Temp-PerformanceNavigationTiming-privacy-fix.patch
Temp-disable-predictive-back-gesture.patch
@@ -0,0 +1,42 @@
From: uazo <uazo@users.noreply.github.com>
Date: Sat, 25 May 2024 10:34:38 +0000
Subject: Enable menu on reload button
Activate right-button submenu in reload (desktop platforms).
Patch derived from the ungoogled-chromium patch of the same name.
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
---
chrome/app/generated_resources.grd | 4 ++--
chrome/browser/ui/views/toolbar/toolbar_view.cc | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -4682,10 +4682,10 @@ are declared in tools/grit/grit_rule.gni.
Normal Reload
</message>
<message name="IDS_RELOAD_MENU_HARD_RELOAD_ITEM" desc="Menu item displayed in the Reload dropdown menu when in dev mode">
- Hard Reload
+ Reload bypassing cache
</message>
<message name="IDS_RELOAD_MENU_EMPTY_AND_HARD_RELOAD_ITEM" desc="Menu item displayed in the Reload dropdown menu when in dev mode">
- Empty Cache and Hard Reload
+ Empty Cache and Reload
</message>
<!-- Tab sharing infobar -->
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -571,7 +571,7 @@ void ToolbarView::Update(WebContents* tab) {
}
if (reload_)
- reload_->SetMenuEnabled(chrome::IsDebuggerAttachedToCurrentTab(browser_));
+ reload_->SetMenuEnabled(true);
}
void ToolbarView::SetToolbarVisibility(bool visible) {
--