Bug 1155505 - Part 3. Use native Windows Toast backend on Nightly only. r=jaws
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Thu, 09 Aug 2018 20:37:08 +0900
changeset 495328 4c0026439db7b741f41200c61cd18358094cbeb0
parent 495327 baf52bca95ae38eef9ee2f9ce3bf40dc133f37bd
child 495329 2cf14f576b8aaae2586a42a0048740dd542e81f3
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