Bug 1521671 - Follow-up: Fix parameter alignment/comment in mails's and chat's browserRequest.js. rs=white-space-only,comment-only DONTBUILD
authorJorg K <jorgk@jorgk.com>
Tue, 22 Jan 2019 16:20:10 +0100
changeset 34272 6c49bd73b927ad95b5e49a50f84a9372374a03fb
parent 34271 30006894ce432d56db2cd609a75a06247d8837ac
child 34273 9e7712f9a4d22412056ca728cf4d72412706d23d
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewerswhite-space-only, comment-only
bugs1521671
Bug 1521671 - Follow-up: Fix parameter alignment/comment in mails's and chat's browserRequest.js. rs=white-space-only,comment-only DONTBUILD
chat/content/browserRequest.js
mail/base/content/browserRequest.js
--- a/chat/content/browserRequest.js
+++ b/chat/content/browserRequest.js
@@ -24,59 +24,59 @@ var reporterListener = {
     delete this.securityDisplay;
     return this.securityDisplay = document.getElementById("security-display");
   },
 
   QueryInterface: ChromeUtils.generateQI(["nsIWebProgressListener",
                                           "nsISupportsWeakReference"]),
 
   onStateChange: function(/*in nsIWebProgress*/ aWebProgress,
-                     /*in nsIRequest*/ aRequest,
-                     /*in unsigned long*/ aStateFlags,
-                     /*in nsresult*/ aStatus) {
+                          /*in nsIRequest*/ aRequest,
+                          /*in unsigned long*/ aStateFlags,
+                          /*in nsresult*/ aStatus) {
     if (aStateFlags & wpl.STATE_START &&
         aStateFlags & wpl.STATE_IS_NETWORK) {
       this.statusMeter.value = 0;
       this.statusMeter.parentNode.collapsed = false;
       this.securityLabel.collapsed = true;
     }
     else if (aStateFlags & wpl.STATE_STOP &&
              aStateFlags & wpl.STATE_IS_NETWORK) {
       this.statusMeter.parentNode.collapsed = true;
       this.securityLabel.collapsed = false;
     }
   },
 
   onProgressChange: function(/*in nsIWebProgress*/ aWebProgress,
-                        /*in nsIRequest*/ aRequest,
-                        /*in long*/ aCurSelfProgress,
-                        /*in long */aMaxSelfProgress,
-                        /*in long */aCurTotalProgress,
-                        /*in long */aMaxTotalProgress) {
+                             /*in nsIRequest*/ aRequest,
+                             /*in long*/ aCurSelfProgress,
+                             /*in long */aMaxSelfProgress,
+                             /*in long */aCurTotalProgress,
+                             /*in long */aMaxTotalProgress) {
     if (aMaxTotalProgress > 0) {
       let percentage = (aCurTotalProgress * 100) / aMaxTotalProgress;
       this.statusMeter.value = percentage;
     }
   },
 
   onLocationChange: function(/*in nsIWebProgress*/ aWebProgress,
-                        /*in nsIRequest*/ aRequest,
-                        /*in nsIURI*/ aLocation) {
+                             /*in nsIRequest*/ aRequest,
+                             /*in nsIURI*/ aLocation) {
     this.securityDisplay.setAttribute('label', aLocation.host);
   },
 
   onStatusChange: function(/*in nsIWebProgress*/ aWebProgress,
-                      /*in nsIRequest*/ aRequest,
-                      /*in nsresult*/ aStatus,
-                      /*in wstring*/ aMessage) {
+                           /*in nsIRequest*/ aRequest,
+                           /*in nsresult*/ aStatus,
+                           /*in wstring*/ aMessage) {
   },
 
   onSecurityChange: function(/*in nsIWebProgress*/ aWebProgress,
-                        /*in nsIRequest*/ aRequest,
-                        /*in unsigned long*/ aState) {
+                             /*in nsIRequest*/ aRequest,
+                             /*in unsigned long*/ aState) {
     const wpl_security_bits = wpl.STATE_IS_SECURE |
                               wpl.STATE_IS_BROKEN |
                               wpl.STATE_IS_INSECURE |
                               wpl.STATE_SECURE_HIGH |
                               wpl.STATE_SECURE_MED |
                               wpl.STATE_SECURE_LOW;
     let browser = document.getElementById("requestFrame");
     let level;
@@ -100,18 +100,19 @@ var reporterListener = {
     } else {
       this.securityButton.hidden = true;
       this.securityButton.removeAttribute("level");
     }
     this.securityButton.setAttribute("tooltiptext",
                                      browser.securityUI.tooltipText);
   },
 
-  onContentBlockingEvent: function(aWebProgress, aRequest, aEvent)
-  {
+  onContentBlockingEvent: function(/*in nsIWebProgress*/ aWebProgress,
+                                   /*in nsIRequest*/ aRequest,
+                                   /*in unsigned long*/ aEvent) {
   }
 }
 
 function cancelRequest()
 {
   reportUserClosed();
   window.close();
 }
--- a/mail/base/content/browserRequest.js
+++ b/mail/base/content/browserRequest.js
@@ -70,17 +70,19 @@ var reporterListener = {
     } else {
       this.securityButton.hidden = true;
       this.securityButton.removeAttribute("level");
     }
     this.securityButton.setAttribute("tooltiptext",
                                      browser.securityUI.tooltipText);
   },
 
-  onContentBlockingEvent(aWebProgress, aRequest, aEvent) {
+  onContentBlockingEvent(/* in nsIWebProgress*/ aWebProgress,
+                         /* in nsIRequest*/ aRequest,
+                         /* in unsigned long*/ aEvent) {
   },
 };
 
 function cancelRequest() {
   reportUserClosed();
   window.close();
 }