Bug 284655 - Javascript strict warning: trailing comma in sanitize.js. patch from Florian QUEZE <f.qu@laposte.net>, r=mconnor
authormozilla.mano@sent.com
Tue, 02 Oct 2007 20:35:20 -0700
changeset 6570 a629dd80584d4a86a0fb174f7b10b1d2855f1545
parent 6569 95e886902b1462100f0f07e79b0ebd79519c8f66
child 6571 e2955bb91ce8df3f05b0639891f4e0f0f3dbcb0a
push idunknown
push userunknown
push dateunknown
reviewersmconnor
bugs284655
milestone1.9a9pre
Bug 284655 - Javascript strict warning: trailing comma in sanitize.js. patch from Florian QUEZE <f.qu@laposte.net>, r=mconnor
browser/modules/Sanitizer.jsm
--- a/browser/modules/Sanitizer.jsm
+++ b/browser/modules/Sanitizer.jsm
@@ -97,17 +97,17 @@ Sanitizer.prototype = {
           cookieMgr.remove(cookies[i].host, cookies[i].name, cookies[i].path, false);
       },
       
       get canClear()
       {
         var cookieMgr = Components.classes["@mozilla.org/cookiemanager;1"]
                                   .getService(Components.interfaces.nsICookieManager);
         return cookieMgr.enumerator.hasMoreElements();
-      },
+      }
     },
     
     history: {
       clear: function ()
       {
         var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"]
                                       .getService(Components.interfaces.nsIBrowserHistory);
         globalHistory.removeAllPages();
@@ -119,49 +119,49 @@ Sanitizer.prototype = {
         catch (e) { }
       },
       
       get canClear()
       {
         var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"]
                                       .getService(Components.interfaces.nsIBrowserHistory);
         return globalHistory.count != 0;
-      },
+      }
     },
     
     formdata: {
       clear: function ()
       {
         var formHistory = Components.classes["@mozilla.org/satchel/form-history;1"]
                                     .getService(Components.interfaces.nsIFormHistory);
         formHistory.removeAllEntries();
       },
       
       get canClear()
       {
         var formHistory = Components.classes["@mozilla.org/satchel/form-history;1"]
                                     .getService(Components.interfaces.nsIFormHistory);
         return formHistory.rowCount != 0;
-      },
+      }
     },
     
     downloads: {
       clear: function ()
       {
         var dlMgr = Components.classes["@mozilla.org/download-manager;1"]
                               .getService(Components.interfaces.nsIDownloadManager);
         dlMgr.cleanUp();
       },
 
       get canClear()
       {
         var dlMgr = Components.classes["@mozilla.org/download-manager;1"]
                               .getService(Components.interfaces.nsIDownloadManager);
         return dlMgr.canCleanUp;
-      },
+      }
     },
     
     passwords: {
       clear: function ()
       {
         var pwmgr = Components.classes["@mozilla.org/passwordmanager;1"]
                               .getService(Components.interfaces.nsIPasswordManager);
         var e = pwmgr.enumerator;
@@ -175,13 +175,13 @@ Sanitizer.prototype = {
           pwmgr.removeUser(passwds[i].host, passwds[i].user);
       },
       
       get canClear()
       {
         var pwmgr = Components.classes["@mozilla.org/passwordmanager;1"]
                               .getService(Components.interfaces.nsIPasswordManager);
         return pwmgr.enumerator.hasMoreElements();
-      },
-    },
-  },
+      }
+    }
+  }
 };