зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1648642 - Handle registry errors gracefully. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D81608
This commit is contained in:
Родитель
f842fb26e8
Коммит
904ee2ab3b
|
@ -595,11 +595,15 @@ class WindowsGPOPoliciesProvider {
|
|||
}
|
||||
|
||||
_readData(wrk, root) {
|
||||
wrk.open(root, "SOFTWARE\\Policies", wrk.ACCESS_READ);
|
||||
if (wrk.hasChild("Mozilla\\" + Services.appinfo.name)) {
|
||||
this._policies = WindowsGPOParser.readPolicies(wrk, this._policies);
|
||||
try {
|
||||
wrk.open(root, "SOFTWARE\\Policies", wrk.ACCESS_READ);
|
||||
if (wrk.hasChild("Mozilla\\" + Services.appinfo.name)) {
|
||||
this._policies = WindowsGPOParser.readPolicies(wrk, this._policies);
|
||||
}
|
||||
wrk.close();
|
||||
} catch (e) {
|
||||
log.error("Unable to access registry - ", e);
|
||||
}
|
||||
wrk.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче