commit 0e6cfdfb47e2203aae51bdc940081850f359962d
parent 64db55074637e749454aaf026f472d2609404bad
Author: serge-sans-paille <sguelton@mozilla.com>
Date: Fri, 7 Nov 2025 10:15:49 +0000
Bug 1997863 - Make WeakPtr MOZ_RUNINIT global variables MOZ_CONSTINIT r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D271019
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dom/base/PointerLockManager.cpp b/dom/base/PointerLockManager.cpp
@@ -42,10 +42,10 @@ using mozilla::dom::Element;
using mozilla::dom::WindowContext;
// Reference to the pointer locked element.
-MOZ_RUNINIT static nsWeakPtr sLockedElement;
+MOZ_CONSTINIT static nsWeakPtr sLockedElement;
// Reference to the document which requested pointer lock.
-MOZ_RUNINIT static nsWeakPtr sLockedDoc;
+MOZ_CONSTINIT static nsWeakPtr sLockedDoc;
// Reference to the BrowserParent requested pointer lock.
static BrowserParent* sLockedRemoteTarget = nullptr;