tor-browser

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

commit 276b1d0d9a8e31eb41cb60ffc4194e58ab0396bc
parent ce3d2bb176efa1b020acd1146711c3d299094701
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Wed,  5 Nov 2025 15:26:48 +0000

Bug 1997863 - Make WeakPtr MOZ_RUNINIT global variables MOZ_CONSTINIT r=emilio

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

Diffstat:
Mdom/base/PointerLockManager.cpp | 4++--
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;