зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1726808 - Un-hardcode the snap name to check against in nsToolkitProfileService::IsSnapEnvironment(). r=stransky,mossop
Differential Revision: https://phabricator.services.mozilla.com/D123239
This commit is contained in:
Родитель
6008d35712
Коммит
27a83cc305
|
@ -36,6 +36,8 @@ LOCAL_INCLUDES += [
|
|||
|
||||
FINAL_LIBRARY = "xul"
|
||||
|
||||
DEFINES["MOZ_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"]
|
||||
|
||||
JAR_MANIFESTS += ["jar.mn"]
|
||||
|
||||
with Files("**"):
|
||||
|
|
|
@ -2053,8 +2053,9 @@ bool nsToolkitProfileService::IsSnapEnvironment() {
|
|||
return false;
|
||||
}
|
||||
|
||||
// snapName as defined on https://snapcraft.io/firefox
|
||||
return (strcmp(snapName, "firefox") == 0);
|
||||
// snapName as defined on e.g.
|
||||
// https://snapcraft.io/firefox or https://snapcraft.io/thunderbird
|
||||
return (strcmp(snapName, MOZ_APP_NAME) == 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче