Bug 1485195 - Display array policies correctly in about:policies r=Felipe
authorArshad Kazmi <arshadkazmi42@gmail.com>
Tue, 23 Oct 2018 20:20:19 +0000
changeset 491016 48c57a68273eafff79cf99855c348fe1bc5b317b
parent 491015 57e435f97c303a4e04f9d74e5eafbe89cc6acab5
child 491017 23895ff54c060382cc4a4900d9e5b61157beb746
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersFelipe
bugs1485195
milestone65.0a1
Bug 1485195 - Display array policies correctly in about:policies r=Felipe Differential Revision: https://phabricator.services.mozilla.com/D9563
browser/components/enterprisepolicies/content/aboutPolicies.js
--- a/browser/components/enterprisepolicies/content/aboutPolicies.js
+++ b/browser/components/enterprisepolicies/content/aboutPolicies.js
@@ -261,16 +261,21 @@ function generateDocumentation() {
     sec_tbody.classList.add("content");
     sec_tbody.classList.add("content-style");
     let schema_row = document.createElement("tr");
     if (schema.properties[policyName].properties) {
       let column = col(JSON.stringify(schema.properties[policyName].properties, null, 1), "schema");
       column.colSpan = "2";
       schema_row.appendChild(column);
       sec_tbody.appendChild(schema_row);
+    } else if (schema.properties[policyName].items) {
+      let column = col(JSON.stringify(schema.properties[policyName], null, 1), "schema");
+      column.colSpan = "2";
+      schema_row.appendChild(column);
+      sec_tbody.appendChild(schema_row);
     } else {
       let column = col("type: " + schema.properties[policyName].type, "schema");
       column.colSpan = "2";
       schema_row.appendChild(column);
       sec_tbody.appendChild(schema_row);
       if (schema.properties[policyName].enum) {
         let enum_row = document.createElement("tr");
         column = col("enum: " + JSON.stringify(schema.properties[policyName].enum, null, 1), "schema");