зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1615136 - Make the Update URL formatter more robust r=mhowell,bhearsum,mkaply
This patch prevents the URL formatter from setting empty values for distribution data. Differential Revision: https://phabricator.services.mozilla.com/D65368 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
9ec8941cd4
Коммит
dde5bcf9b1
|
@ -385,9 +385,13 @@ if (AppConstants.platform != "win") {
|
|||
|
||||
/* Get the distribution pref values, from defaults only */
|
||||
function getDistributionPrefValue(aPrefName) {
|
||||
return Services.prefs
|
||||
let value = Services.prefs
|
||||
.getDefaultBranch(null)
|
||||
.getCharPref(aPrefName, "default");
|
||||
if (!value) {
|
||||
value = "default";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function getSystemCapabilities() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче