Bug 1375692 - Indicate support for Stylo in about:support draft
authorGregory Szorc <gps@mozilla.com>
Thu, 22 Jun 2017 15:58:05 -0700
changeset 599307 e056b28759d5f82632c53cf9581b8217329c885f
parent 599264 2976c2ef3cc681bf66f4db5aa477ed1152b86dd4
child 634726 2e63d3ae96e7416f07beb65fdcbd28bacd2d3e46
push id65474
push usergszorc@mozilla.com
push dateThu, 22 Jun 2017 22:58:22 +0000
bugs1375692
milestone56.0a1
Bug 1375692 - Indicate support for Stylo in about:support This is a PoC patch. No clue if tests are needed. No clue if we want to look at a pref value instead of the #define's. Hopefully I saved someone a little work with this minimal patch :) MozReview-Commit-ID: GZdyy2fKIfZ
toolkit/content/aboutSupport.xhtml
toolkit/locales/en-US/chrome/global/aboutSupport.dtd
--- a/toolkit/content/aboutSupport.xhtml
+++ b/toolkit/content/aboutSupport.xhtml
@@ -223,16 +223,32 @@
             <th class="column">
               &aboutSupport.appBasicsMultiProcessSupport;
             </th>
 
             <td id="multiprocess-box">
             </td>
           </tr>
 
+#ifdef MOZ_STYLO
+          <tr>
+            <th class="column">
+              Stylo
+            </th>
+
+            <td id="stylo-box">
+#ifdef MOZ_STYLO_ENABLE
+              &aboutSupport.appBasicsStyloEnabled;
+#else
+              &aboutSupport.appBasicsStyloSupported;
+#endif
+            </td>
+          </tr>
+#endif
+
           <tr>
             <th class="column">
               &aboutSupport.appBasicsKeyGoogle;
             </th>
 
             <td id="key-google-box">
             </td>
           </tr>
--- a/toolkit/locales/en-US/chrome/global/aboutSupport.dtd
+++ b/toolkit/locales/en-US/chrome/global/aboutSupport.dtd
@@ -65,16 +65,19 @@ Windows/Mac use the term "Folder" instea
 
 <!-- LOCALIZATION NOTE the term "Service Workers" should not be translated. -->
 <!ENTITY aboutSupport.appBasicsServiceWorkers "Registered Service Workers">
 
 <!ENTITY aboutSupport.appBasicsProfiles "Profiles">
 
 <!ENTITY aboutSupport.appBasicsMultiProcessSupport "Multiprocess Windows">
 
+<!ENTITY aboutSupport.appBasicsStyloSupported "Supported">
+<!ENTITY aboutSupport.appBasicsStyloEnabled "Enabled">
+
 <!ENTITY aboutSupport.appBasicsKeyGoogle "Google Key">
 <!ENTITY aboutSupport.appBasicsKeyMozilla "Mozilla Location Service Key">
 
 <!ENTITY aboutSupport.appBasicsSafeMode "Safe Mode">
 
 <!ENTITY aboutSupport.showDir.label "Open Directory">
 <!-- LOCALIZATION NOTE (aboutSupport.showMac.label): This is the Mac-specific
 variant of aboutSupport.showDir.label.  This allows us to use the preferred