Bug 1442866 - Make the policiesStatus work on TB too. r=Felipe
authorRichard Marti <richard.marti@gmail.com>
Sat, 03 Mar 2018 19:18:23 +0100
changeset 461503 8577732074db157b56798c455a381363a0f07351
parent 461494 5c3844e6f0628599d183d644a9f6136d18a9afc5
child 461505 21f7f94a2c18dc8010ac2f300a36cc4ddd16081c
child 461507 b0eb708c533b05df8c2cfc1b97fc0199e3e84394
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe
bugs1442866
milestone60.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 1442866 - Make the policiesStatus work on TB too. r=Felipe
toolkit/modules/Troubleshoot.jsm
--- a/toolkit/modules/Troubleshoot.jsm
+++ b/toolkit/modules/Troubleshoot.jsm
@@ -246,17 +246,19 @@ var dataProviders = {
     data.styloChromeResult = false;
     if (data.styloResult) {
       let winUtils = Services.wm.getMostRecentWindow("").
                      QueryInterface(Ci.nsIInterfaceRequestor).
                      getInterface(Ci.nsIDOMWindowUtils);
       data.styloChromeResult = winUtils.isStyledByServo;
     }
 
-    data.policiesStatus = Services.policies.status;
+    if (Services.policies) {
+      data.policiesStatus = Services.policies.status;
+    }
 
     const keyGoogle = Services.urlFormatter.formatURL("%GOOGLE_API_KEY%").trim();
     data.keyGoogleFound = keyGoogle != "no-google-api-key" && keyGoogle.length > 0;
 
     const keyMozilla = Services.urlFormatter.formatURL("%MOZILLA_API_KEY%").trim();
     data.keyMozillaFound = keyMozilla != "no-mozilla-api-key" && keyMozilla.length > 0;
 
     done(data);