Bug 1270926 - Modify aboutNetError.xhtml & blockedSite.xhtml to pass current eslint rules. r=dao draft
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Fri, 19 Aug 2016 23:42:50 -0700
changeset 403592 6198821b626f423ca5ba65889356eb5ca6384ee2
parent 403591 c35fb5ec61015f85ad750e881ca3b2edec6f1ed3
child 528948 779e85b4020ed54826f568b9ef8a20a741fb796b
push id26956
push usermozilla@noorenberghe.ca
push dateSat, 20 Aug 2016 06:57:52 +0000
reviewersdao
bugs1270926
milestone51.0a1
Bug 1270926 - Modify aboutNetError.xhtml & blockedSite.xhtml to pass current eslint rules. r=dao eol-last requires a new line at the end of the JS block MozReview-Commit-ID: sEcAiEgb4s
browser/base/content/aboutNetError.xhtml
browser/base/content/blockedSite.xhtml
--- a/browser/base/content/aboutNetError.xhtml
+++ b/browser/base/content/aboutNetError.xhtml
@@ -387,17 +387,17 @@
           var codeRe = /<a id="errorCode" title="([^"]+)">/;
           var codeResult = codeRe.exec(desc);
           var domainRe = /<a id="cert_domain_link" title="([^"]+)">/;
           var domainResult = domainRe.exec(desc);
 
           // The order of these links in the description is fixed in
           // TransportSecurityInfo.cpp:formatOverridableCertErrorMessage.
           var firstResult = domainResult;
-          if(!domainResult)
+          if (!domainResult)
             firstResult = codeResult;
           if (!firstResult)
             return;
           // Remove sd's existing children
           sd.textContent = "";
 
           // Everything up to the first link should be text content.
           sd.appendChild(document.createTextNode(desc.slice(0, firstResult.index)));
@@ -652,12 +652,14 @@
       <button id="copyToClipboard">&certerror.copyToClipboard.label;</button>
     </div>
 
     <!--
     - Note: It is important to run the script this way, instead of using
     - an onload handler. This is because error pages are loaded as
     - LOAD_BACKGROUND, which means that onload handlers will not be executed.
     -->
-    <script type="application/javascript">initPage();</script>
+    <script type="application/javascript">
+      initPage();
+    </script>
 
   </body>
 </html>
--- a/browser/base/content/blockedSite.xhtml
+++ b/browser/base/content/blockedSite.xhtml
@@ -184,11 +184,13 @@
         <button id="ignoreWarningButton">&safeb.palm.decline.label;</button>
       </div>
     </div>
     <!--
     - Note: It is important to run the script this way, instead of using
     - an onload handler. This is because error pages are loaded as
     - LOAD_BACKGROUND, which means that onload handlers will not be executed.
     -->
-    <script type="application/javascript">initPage();</script>
+    <script type="application/javascript">
+      initPage();
+    </script>
   </body>
 </html>