Skip to content

Commit 546ac2c

Browse files
committed
Bug 1703179 - [Thunderbird only] don't do early master password prompt when in backgroundtasks mode. r=kaie,xpcom-reviewers,mccr8 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D114968
1 parent a05c120 commit 546ac2c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

toolkit/xre/nsXREDirProvider.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,12 @@ nsXREDirProvider::DoStartup() {
934934
#endif
935935

936936
#ifdef MOZ_THUNDERBIRD
937-
if (mozilla::Preferences::GetBool(
937+
bool bgtaskMode = false;
938+
# ifdef MOZ_BACKGROUNDTASKS
939+
bgtaskMode = mozilla::BackgroundTasks::IsBackgroundTaskMode();
940+
# endif
941+
if (!bgtaskMode &&
942+
mozilla::Preferences::GetBool(
938943
"security.prompt_for_master_password_on_startup", false)) {
939944
// Prompt for the master password prior to opening application windows,
940945
// to avoid the race that triggers multiple prompts (see bug 177175).

0 commit comments

Comments
 (0)