Bug 1616007 - Invalid hasPolicies check. r=mconley
☠☠ backed out by 31bc0ae89277 ☠ ☠
authorMichael Kaply <mozilla@kaply.com>
Tue, 18 Feb 2020 19:42:05 +0000
changeset 514522 8bd615a461b7b032b658093cd5734111b6801873
parent 514521 a9091629c4f81bc5da7143cf64a187b5e1fbb97e
child 514523 021e98de289dbadaad53290c71fd22b63c9f68df
push id107612
push usermozilla@kaply.com
push dateTue, 18 Feb 2020 20:05:36 +0000
treeherderautoland@8bd615a461b7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1616007
milestone75.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 1616007 - Invalid hasPolicies check. r=mconley Differential Revision: https://phabricator.services.mozilla.com/D63209
toolkit/components/enterprisepolicies/EnterprisePolicies.js
--- a/toolkit/components/enterprisepolicies/EnterprisePolicies.js
+++ b/toolkit/components/enterprisepolicies/EnterprisePolicies.js
@@ -457,17 +457,17 @@ class JSONPoliciesProvider {
   constructor() {
     this._policies = null;
     this._failed = false;
     this._readData();
   }
 
   get hasPolicies() {
     return (
-      this._failed ||
+      !this._failed ||
       (this._policies !== null && !isEmptyObject(this._policies))
     );
   }
 
   get policies() {
     return this._policies;
   }