diff --git a/toolkit/xre/MacRunFromDmgUtils.mm b/toolkit/xre/MacRunFromDmgUtils.mm index 421ef9e20f2c..6ba18b6c5e19 100644 --- a/toolkit/xre/MacRunFromDmgUtils.mm +++ b/toolkit/xre/MacRunFromDmgUtils.mm @@ -356,13 +356,14 @@ bool MaybeInstallFromDmgAndRelaunch() { NS_OBJC_BEGIN_TRY_BLOCK_RETURN; @autoreleasepool { - if (!IsAppRunningFromDmg()) { + bool isFromDmg = IsAppRunningFromDmg(); + + Telemetry::ScalarSet(Telemetry::ScalarID::STARTUP_FIRST_RUN_IS_FROM_DMG, isFromDmg); + + if (!isFromDmg) { return false; } - Telemetry::ScalarSet(Telemetry::ScalarID::STARTUP_FIRST_RUN_IS_FROM_DMG, - MacRunFromDmgUtils::IsAppRunningFromDmg()); - // The Applications directory may not be at /Applications, although in // practice we're unlikely to encounter since run-from-.dmg is really an // issue with novice mac users. Still, look it up correctly: