Bug 1192615 - Use native OS notifications by default. r=mkmelin
authorAlessandro Castellani <alessandro@thunderbird.net>
Wed, 29 May 2024 21:58:02 +0000 (13 months ago)
changeset 41703 820aeb7f308ecae6e7630e0721b4afd6afa057de
parent 41702 e2b408b5a9ab517dc6f8f1d4ce9100b98ce8e343
child 41704 1f0f92a57ece56543a1874bbfde09400a28eb4f1
push id22182
push usersolange@thunderbird.net
push dateWed, 29 May 2024 22:00:13 +0000 (13 months ago)
treeherdercomm-central@1f0f92a57ece [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs1192615
Bug 1192615 - Use native OS notifications by default. r=mkmelin Differential Revision: https://phabricator.services.mozilla.com/D211957
mail/test/browser/notification/browser.ini
mailnews/mailnews.js
--- a/mail/test/browser/notification/browser.ini
+++ b/mail/test/browser/notification/browser.ini
@@ -1,11 +1,10 @@
 [DEFAULT]
 prefs =
-  mail.biff.use_system_alert=true
   mail.provider.suppress_dialog_on_startup=true
   mail.spotlight.firstRunDone=true
   mail.winsearch.firstRunDone=true
   mailnews.start_page.override_url=about:blank
   mailnews.start_page.url=about:blank
   datareporting.policy.dataSubmissionPolicyBypassNotification=true
 subsuite = thunderbird
 
--- a/mailnews/mailnews.js
+++ b/mailnews/mailnews.js
@@ -872,20 +872,23 @@ pref("mail.biff.play_sound.type", 0);
 // _moz_mailbeep is a magic key, for the default sound.
 // otherwise, this needs to be a file url
 pref("mail.biff.play_sound.url", "");
 pref("mail.biff.show_alert", true);
 #ifdef XP_WIN
 pref("mail.biff.show_badge", true);
 pref("mail.biff.show_tray_icon", true);
 pref("mail.biff.show_tray_icon_always", false);
-pref("mail.biff.use_system_alert", false);
 #elifdef XP_MACOSX
 pref("mail.biff.animate_dock_icon", false);
-#elifdef XP_UNIX
+#endif
+
+// Use native OS notifications for Linux and Windows by default.
+// macOS only uses native notifications and it can't be changed.
+#ifndef XP_MACOSX
 pref("mail.biff.use_system_alert", true);
 #endif
 
 // add jitter to biff interval
 pref("mail.biff.add_interval_jitter", true);
 
 #ifdef MOZ_SUITE
 // if true, check for new mail even when opening non-mail windows