Bug 500693 - "Several source files are missing semicolons as line terminators" [r=mark.finkle]
authorBen Combee <combee@mozilla.com>
Mon, 29 Jun 2009 14:33:05 -0400
changeset 606 853c0e16efa0
parent 605 349bda8d2618
child 607 3909514e31d9
push id542
push usermfinkle@mozilla.com
push date2009-06-29 18:33 +0000
reviewersmark
bugs500693
Bug 500693 - "Several source files are missing semicolons as line terminators" [r=mark.finkle]
chrome/content/InputHandler.js
chrome/content/browser-ui.js
chrome/content/browser.js
chrome/content/console.js
chrome/content/downloads.js
--- a/chrome/content/InputHandler.js
+++ b/chrome/content/InputHandler.js
@@ -568,17 +568,17 @@ KineticData.prototype = {
         ws.panBy(w, 0, true);
       else
         ws.panBy(-rightVis * w, 0, true);
     }
 
     // unfreeze the toolbar if we have hide the sidebar
     let visibleNow = ws.isWidgetVisible("tabs-container") || ws.isWidgetVisible("browser-controls");
     if (!visibleNow)
-      ws.unfreeze('toolbar-main')
+      ws.unfreeze('toolbar-main');
 
     this.reset();
   },
 
   addData: function addData(sx, sy) {
     let mbLength = this.momentumBuffer.length;
     // avoid adding duplicates which would otherwise slow down the speed
     let now = Date.now();
--- a/chrome/content/browser-ui.js
+++ b/chrome/content/browser-ui.js
@@ -182,17 +182,17 @@ var BrowserUI = {
       if (urlString == "about:blank")
         urlString = "";
       this._edit.value = urlString;
 
       // This is a workaround for bug 488420, needed to cycle focus for the
       // IME state to be set properly. Testing shows we only really need to
       // do this the first time.
       this._edit.inputField.blur();
-      
+
       this._edit.inputField.focus();
       this._edit.select();
     }
     else if (!aEdit && icons.getAttribute("mode") != "view") {
       icons.setAttribute("mode", "view");
       this._edit.inputField.blur();
       this._edit.reallyClosePopup();
     }
@@ -216,19 +216,19 @@ var BrowserUI = {
 
   _initControls : false,
   sizeControls : function(windowW, windowH) {
     let toolbar = document.getElementById("toolbar-main");
     let tabs = document.getElementById("tabs-container");
     let controls = document.getElementById("browser-controls");
     if (!this._initControls) {
       this._initControls = true;
-      ws.moveUnfrozenTo("toolbar-main", null, -this.toolbarH)
-      ws.moveUnfrozenTo("tabs-container", -tabs.boxObject.width, this.toolbarH)
-      ws.moveUnfrozenTo("browser-controls", null, this.toolbarH)
+      ws.moveUnfrozenTo("toolbar-main", null, -this.toolbarH);
+      ws.moveUnfrozenTo("tabs-container", -tabs.boxObject.width, this.toolbarH);
+      ws.moveUnfrozenTo("browser-controls", null, this.toolbarH);
     }
 
     toolbar.width = windowW;
 
     let popup = document.getElementById("popup_autocomplete");
     popup.top = this.toolbarH;
     popup.height = windowH - this.toolbarH;
     popup.width = windowW;
@@ -799,42 +799,42 @@ var SelectHelper = {
   show: function(aControl) {
     if (!aControl)
       return;
 
     this._control = aControl;
     this._selectedIndex = this._control.selectedIndex;
 
     this._list = document.getElementById("select-list");
-    this._list.setAttribute("multiple", this._control.multiple ? "true" : "false")
+    this._list.setAttribute("multiple", this._control.multiple ? "true" : "false");
 
     let optionIndex = 0;
     let children = this._control.children;
     for (let i=0; i<children.length; i++) {
       let child = children[i];
       if (child instanceof HTMLOptGroupElement) {
         let group = document.createElement("option");
-        group.setAttribute("label", child.label)
+        group.setAttribute("label", child.label);
         this._list.appendChild(group);
         group.className = "optgroup";
 
         let subchildren = child.children;
         for (let ii=0; ii<subchildren.length; ii++) {
           let subchild = subchildren[ii];
           let item = document.createElement("option");
-          item.setAttribute("label", subchild.text)
+          item.setAttribute("label", subchild.text);
           this._list.appendChild(item);
           item.className = "in-optgroup";
           item.optionIndex = optionIndex++;
           if (subchild.selected)
             item.setAttribute("selected", "true");
         }
       } else if (child instanceof HTMLOptionElement) {
         let item = document.createElement("option");
-        item.setAttribute("label", child.textContent)
+        item.setAttribute("label", child.textContent);
         this._list.appendChild(item);
         item.optionIndex = optionIndex++;
         if (child.selected)
           item.setAttribute("selected", "true");
       }
     }
 
     this._panel = document.getElementById("select-container");
--- a/chrome/content/browser.js
+++ b/chrome/content/browser.js
@@ -247,17 +247,17 @@ var Browser = {
     if (gPrefService.prefHasUserValue("temporary.disablePlugins")) {
       gPrefService.clearUserPref("temporary.disablePlugins");
       this.setPluginState(true);
     }
   },
 
   shutdown: function() {
     this._canvasBrowser.setCurrentBrowser(null);
-    
+
     BrowserUI.uninit();
 
     var os = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService);
     os.removeObserver(gXPInstallObserver, "xpinstall-install-blocked");
     os.removeObserver(gXPInstallObserver, "xpinstall-download-started");
     os.removeObserver(gSessionHistoryObserver, "browser:purge-session-history");
     window.controllers.removeController(this);
     window.controllers.removeController(BrowserUI);
@@ -265,17 +265,17 @@ var Browser = {
 
   updateViewportSize: function() {
     var [w, h] = this._canvasBrowser._effectiveContentAreaDimensions.map(Math.ceil);
 
     if (!this._currentViewportBounds ||
         w != this._currentViewportBounds.width ||
         h != this._currentViewportBounds.height) {
       this._currentViewportBounds = {width: w, height: h};
-      let bounds = { top: 0, left: 0, right: Math.max(800, w), bottom: Math.max(480, h) }
+      let bounds = { top: 0, left: 0, right: Math.max(800, w), bottom: Math.max(480, h) };
       ws.setViewportBounds(bounds);
     }
   },
 
   setPluginState: function(enabled)
   {
     var phs = Cc["@mozilla.org/plugin/host;1"].getService(Ci.nsIPluginHost);
     var plugins = phs.getPluginTags({ });
@@ -455,17 +455,17 @@ var Browser = {
     let doc = getBrowser().contentDocument;
     // jonas black magic (only match text nodes that contain a sequence of 4 numbers)
     let textnodes = doc.evaluate('//text()[contains(translate(., "0123456789", "^^^^^^^^^^"), "^^^^")]',
                                  doc,
                                  null,
                                  XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
                                  null);
     let s, node, lastLastIndex;
-    let re = /(\+?1? ?-?\(?\d{3}\)?[ +-\.]\d{3}[ +-\.]\d{4})/
+    let re = /(\+?1? ?-?\(?\d{3}\)?[ +-\.]\d{3}[ +-\.]\d{4})/;
     for (var i = 0; i < textnodes.snapshotLength; i++) {
       node = textnodes.snapshotItem(i);
       s = node.data;
       if (s.match(re)) {
         s = s.replace(re, "<a href='tel:$1'> $1 </a>");
         try {
           let replacement = doc.createElement("span");
           replacement.innerHTML = s;
@@ -595,17 +595,17 @@ nsBrowserAccess.prototype = {
     } catch(e) { }
 
     return newWindow;
   },
 
   isTabContentWindow: function(aWindow) {
     return Browser.browsers.some(function (browser) browser.contentWindow == aWindow);
   }
-}
+};
 
 /**
  * Utility class to handle manipulations of the identity indicators in the UI
  */
 function IdentityHandler() {
   this._stringBundle = document.getElementById("bundle_browser");
   this._staticStrings = {};
   this._staticStrings[this.IDENTITY_MODE_DOMAIN_VERIFIED] = {
@@ -975,17 +975,17 @@ const gXPInstallObserver = {
     var browserBundle = document.getElementById("bundle_browser");
     switch (aTopic) {
       case "xpinstall-install-blocked":
         var installInfo = aSubject.QueryInterface(Ci.nsIXPIInstallInfo);
         var host = installInfo.originatingURI.host;
         var brandShortName = brandBundle.getString("brandShortName");
         var notificationName, messageString, buttons;
         if (!gPrefService.getBoolPref("xpinstall.enabled")) {
-          notificationName = "xpinstall-disabled"
+          notificationName = "xpinstall-disabled";
           if (gPrefService.prefIsLocked("xpinstall.enabled")) {
             messageString = browserBundle.getString("xpinstallDisabledMessageLocked");
             buttons = [];
           }
           else {
             messageString = browserBundle.getFormattedString("xpinstallDisabledMessage",
                                                              [brandShortName, host]);
             buttons = [{
@@ -995,17 +995,17 @@ const gXPInstallObserver = {
               callback: function editPrefs() {
                 gPrefService.setBoolPref("xpinstall.enabled", true);
                 return false;
               }
             }];
           }
         }
         else {
-          notificationName = "xpinstall"
+          notificationName = "xpinstall";
           messageString = browserBundle.getFormattedString("xpinstallPromptWarning",
                                                            [brandShortName, host]);
 
           buttons = [{
             label: browserBundle.getString("xpinstallPromptAllowButton"),
             accessKey: browserBundle.getString("xpinstallPromptAllowButton.accesskey"),
             popup: null,
             callback: function() {
@@ -1036,17 +1036,17 @@ const gSessionHistoryObserver = {
     let back = document.getElementById("cmd_back");
     back.setAttribute("disabled", "true");
     let forward = document.getElementById("cmd_forward");
     forward.setAttribute("disabled", "true");
 
     let urlbar = document.getElementById("urlbar-edit");
     if (urlbar) {
       // Clear undo history of the URL bar
-      urlbar.editor.transactionManager.clear()
+      urlbar.editor.transactionManager.clear();
     }
   }
 };
 
 function getNotificationBox(aWindow) {
   return Browser.getNotificationBox();
 }
 
@@ -1098,17 +1098,17 @@ var AlertsHelper = {
     if (this._clickable && this._listener)
       this._listener.observe(null, "alertclickcallback", this._cookie);
 
     if (this._timeoutID != -1) {
       clearTimeout(this._timeoutID);
       this._timeoutAlert();
     }
   }
-}
+};
 
 var HelperAppDialog = {
   _launcher: null,
 
   show: function had_show(aLauncher) {
     this._launcher = aLauncher;
     document.getElementById("helperapp-target").value = this._launcher.suggestedFileName;
 
@@ -1132,17 +1132,17 @@ var HelperAppDialog = {
     this.close();
   },
 
   close: function had_close() {
     document.getElementById("helperapp-target").value = "";
     let container = document.getElementById("helperapp-container");
     container.hidden = true;
   }
-}
+};
 
 function ProgressController(tab) {
   this._tab = tab;
 }
 
 ProgressController.prototype = {
   get browser() {
     return this._tab.browser;
@@ -1446,9 +1446,9 @@ Tab.prototype = {
 
   updateThumbnail: function() {
     if (!this._browser)
       return;
 
     let srcCanvas = (Browser.selectedBrowser == this._browser) ? document.getElementById("browser-canvas") : null;
     this._chromeTab.updateThumbnail(this._browser, srcCanvas);
   }
-}
+};
--- a/chrome/content/console.js
+++ b/chrome/content/console.js
@@ -155,17 +155,17 @@ let ConsoleView = {
 
   },
 
   appendMessage: function cv_appendMessage (aMessage) {
     let row = this.createConsoleRow();
     row.setAttribute("type", "message");
     row.setAttribute("msg", aMessage);
 
-    let mode = document.getElementById("console-filter").value
+    let mode = document.getElementById("console-filter").value;
     if (mode != "all" && mode != "message")
       row.collapsed = false;
 
     this.appendConsoleRow(row);
   },
 
   createConsoleRow: function cv_createConsoleRow() {
     let row = document.createElement("richlistitem");
--- a/chrome/content/downloads.js
+++ b/chrome/content/downloads.js
@@ -217,17 +217,17 @@ var DownloadsView = {
         currBytes: this._stmt.getInt64(8),
         maxBytes: this._stmt.getInt64(9)
       };
 
       // Only add the referrer if it's not null
       let (referrer = this._stmt.getString(7)) {
         if (referrer)
           attrs.referrer = referrer;
-      }
+      };
 
       // If the download is active, grab the real progress, otherwise default 100
       let isActive = this._stmt.getInt32(10);
       attrs.progress = isActive ? this._dlmgr.getDownload(attrs.id).percentComplete : 100;
 
       // Make the item and add it to the end if it's active or matches the search
       let item = this._createItem(attrs);
       if (item && (isActive || this._matchesSearch(item))) {