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:
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");