Bug 1145394 - Fix unparseable JS code (r=gavin)
authorBill McCloskey <billm@mozilla.com>
Thu, 19 Mar 2015 15:29:09 -0700
changeset 234721 f7c5c5c8bdffac69375cda4465bdb69fdfebbec2
parent 234720 8626a98a34d83f9b7228a455f46b0abdaed6a216
child 234722 72c740d37eb9affb9af3673152a62a765a01b2bd
push id57232
push userwmccloskey@mozilla.com
push dateFri, 20 Mar 2015 18:57:48 +0000
treeherdermozilla-inbound@72c740d37eb9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs1145394
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1145394 - Fix unparseable JS code (r=gavin)
addon-sdk/source/examples/debug-client/data/client.js
browser/base/content/sanitizeDialog.js
--- a/addon-sdk/source/examples/debug-client/data/client.js
+++ b/addon-sdk/source/examples/debug-client/data/client.js
@@ -197,17 +197,17 @@ var Connection = Class({
   addPool: function(pool) {
     this.pools.add(pool);
   },
   removePool: function(pool) {
     this.pools.delete(pool);
   },
   poolFor: function(id) {
     for (let pool of this.pools.values()) {
-      if pool.has(id)
+      if (pool.has(id))
         return pool;
     }
   },
   get: function(id) {
     var pool = this.poolFor(id);
     return pool && pool.get(id);
   },
   disconnect: function() {
@@ -792,17 +792,17 @@ var Tab = Client.from({
     "canvasActor": "canvas",
     "webglActor": "webgl",
     "webaudioActor": "webaudio",
     "styleSheetsActor": "stylesheets",
     "styleEditorActor": "styleeditor",
     "storageActor": "storage",
     "gcliActor": "gcli",
     "memoryActor": "memory",
-    "eventLoopLag": "eventLoopLag"
+    "eventLoopLag": "eventLoopLag",
 
     "trace": "trace", // missing
   }
 });
 
 var tablist = Client.from({
   "category": "dict",
   "typeName": "tablist",
--- a/browser/base/content/sanitizeDialog.js
+++ b/browser/base/content/sanitizeDialog.js
@@ -261,17 +261,17 @@ var gSanitizePromptDialog = {
   toggleItemList: function ()
   {
     var itemList = document.getElementById("itemList");
 
     if (itemList.collapsed)
       this.showItemList();
     else
       this.hideItemList();
-  }
+  },
 
 #ifdef CRH_DIALOG_TREE_VIEW
   // A duration value; used in the same context as Sanitizer.TIMESPAN_HOUR,
   // Sanitizer.TIMESPAN_2HOURS, et al.  This should match the value attribute
   // of the sanitizeDurationCustom menuitem.
   get TIMESPAN_CUSTOM()
   {
     return -1;