From 7809a7f31c65d74afb7b54bea09a82530006144c Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Sat, 25 May 2024 13:17:01 +0200 Subject: [PATCH] Enable menu on reload button: #1147 Add reload options on right clicking refresh button --- build/cromite_patches_list.txt | 1 + .../Enable-menu-on-reload-button.patch | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 build/patches/Enable-menu-on-reload-button.patch diff --git a/build/cromite_patches_list.txt b/build/cromite_patches_list.txt index ebe33818..c19915bc 100644 --- a/build/cromite_patches_list.txt +++ b/build/cromite_patches_list.txt @@ -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 diff --git a/build/patches/Enable-menu-on-reload-button.patch b/build/patches/Enable-menu-on-reload-button.patch new file mode 100644 index 00000000..64c862ee --- /dev/null +++ b/build/patches/Enable-menu-on-reload-button.patch @@ -0,0 +1,42 @@ +From: uazo +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 + + +- Hard Reload ++ Reload bypassing cache + + +- Empty Cache and Hard Reload ++ Empty Cache and Reload + + + +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) { +--