diff --git a/widget/windows/WinUtils.cpp b/widget/windows/WinUtils.cpp index bb8543c7896e..b75aa316a8cf 100644 --- a/widget/windows/WinUtils.cpp +++ b/widget/windows/WinUtils.cpp @@ -2088,7 +2088,8 @@ WinUtils::WhitelistVec WinUtils::BuildWhitelist() { const WinUtils::WhitelistVec& WinUtils::GetWhitelistedPaths() { static WhitelistVec sWhitelist([]() -> WhitelistVec { auto setClearFn = [ptr = &sWhitelist]() -> void { - RunOnShutdown([ptr]() -> void { ptr->clear(); }, ShutdownPhase::Shutdown); + RunOnShutdown([ptr]() -> void { ptr->clear(); }, + ShutdownPhase::ShutdownFinal); }; if (NS_IsMainThread()) {