Bug 1155505 - Part 3. Use native Windows Toast backend on Nightly only. r=jaws
☠☠ backed out by 10b62fac5269 ☠ ☠
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Thu, 09 Aug 2018 20:37:08 +0900
changeset 495105 f5e706d5a1433a95a8d3015c684cfef10c13e850
parent 495104 5400ec20792c04d86c825e7debdcddd6f1e3b5f5
child 495106 af0781ab02a6be8c152aa2b0dbad7b2313da3811
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1155505
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1155505 - Part 3. Use native Windows Toast backend on Nightly only. r=jaws For feedback, I would like to turn on native Windows Toast backend on Nightly only. Differential Revision: https://phabricator.services.mozilla.com/D3004
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -5085,17 +5085,28 @@ pref("network.buffer.cache.size",  32768
 pref("dom.webnotifications.requireinteraction.count", 3);
 
 // Show favicons in web notifications.
 pref("alerts.showFavicons", false);
 
 // Whether to use platform-specific backends for showing desktop notifications.
 // If no such backend is available, or if the pref is false, then XUL
 // notifications are used.
+
+// Linux and macOS turn on system level notification as default, but Windows is
+// Nightly only due to unstable yet.
+#if defined(XP_WIN)
+#if defined(NIGHTLY_BUILD)
 pref("alerts.useSystemBackend", true);
+#else
+pref("alerts.useSystemBackend", false);
+#endif
+#else
+pref("alerts.useSystemBackend", true);
+#endif
 
 // DOM full-screen API.
 pref("full-screen-api.enabled", false);
 pref("full-screen-api.allow-trusted-requests-only", true);
 // whether to prevent the top level widget from going fullscreen
 pref("full-screen-api.ignore-widgets", false);
 pref("full-screen-api.pointer-lock.enabled", true);
 // transition duration of fade-to-black and fade-from-black, unit: ms