tor-browser

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

commit f1caff7d2fc2d79be3e9c63f2be061297ea65fdf
parent 6a43faf158a2f79a4d80e1480d03769def1b4813
Author: Bob Owen <bobowencode@gmail.com>
Date:   Tue,  4 Nov 2025 19:26:37 +0000

Bug 1998165 - Only run LSPAnnotate in the parent. r=gstoll,win-reviewers

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

Diffstat:
Mwidget/windows/LSPAnnotator.cpp | 1+
Mwidget/windows/nsAppShell.cpp | 3+--
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/widget/windows/LSPAnnotator.cpp b/widget/windows/LSPAnnotator.cpp @@ -119,6 +119,7 @@ LSPAnnotationGatherer::Run() { } void LSPAnnotate() { + MOZ_ASSERT(XRE_IsParentProcess()); nsCOMPtr<nsIRunnable> runnable(new LSPAnnotationGatherer()); NS_DispatchBackgroundTask(runnable.forget()); } diff --git a/widget/windows/nsAppShell.cpp b/widget/windows/nsAppShell.cpp @@ -600,11 +600,10 @@ nsresult nsAppShell::InitEventWindow() { } nsresult nsAppShell::Init() { - LSPAnnotate(); - hal::Init(); if (XRE_IsParentProcess()) { + LSPAnnotate(); sTaskbarButtonCreatedMsg = ::RegisterWindowMessageW(kTaskbarButtonEventId); NS_ASSERTION(sTaskbarButtonCreatedMsg, "Could not register taskbar button creation message");