tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 0c524cd1098409316fc2d3ec08939941e7af3431
parent d251e90a0e530f4b6aa09cf83103cee90b9c92a6
Author: Brad Werth <werth@efn.org>
Date:   Wed, 12 Nov 2025 16:19:19 +0000

Bug 1985327 Part 2: Make Windows handle PROCESS_PRIORITY_FOREGROUND_HIGH. r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D272102

Diffstat:
Mhal/windows/WindowsProcessPriority.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/hal/windows/WindowsProcessPriority.cpp b/hal/windows/WindowsProcessPriority.cpp @@ -26,6 +26,8 @@ void SetProcessPriority(int aPid, ProcessPriority aPriority) { priority = IDLE_PRIORITY_CLASS; } else if (aPriority == PROCESS_PRIORITY_BACKGROUND_PERCEIVABLE) { priority = BELOW_NORMAL_PRIORITY_CLASS; + } else if (aPriority == PROCESS_PRIORITY_FOREGROUND_HIGH) { + priority = ABOVE_NORMAL_PRIORITY_CLASS; } if (::SetPriorityClass(processHandle, priority)) {