Bug 859818 - ConsoleAPIStorage.jsm tries to delete var-declared _consoleStorage; r=msucan
authorCaio Lima <ticaiolima@gmail.com>
Tue, 23 Apr 2013 12:19:00 +0300
changeset 140757 52ecd5996151bd0c9b0e0924550a1aaec7976aa0
parent 140756 6353c5dfa86009e52254464c62227a2b7481c107
child 140758 681bbf7717c16100fd7e4f3891acb3215e303c81
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmsucan
bugs859818
milestone23.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 859818 - ConsoleAPIStorage.jsm tries to delete var-declared _consoleStorage; r=msucan
dom/base/ConsoleAPIStorage.jsm
--- a/dom/base/ConsoleAPIStorage.jsm
+++ b/dom/base/ConsoleAPIStorage.jsm
@@ -35,24 +35,22 @@ var _consoleStorage = {};
  *
  *    // Clear the events for the given inner window ID.
  *    ConsoleAPIStorage.clearEvents(innerWindowID);
  */
 this.ConsoleAPIStorage = {
 
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver]),
 
-  /** @private */
   observe: function CS_observe(aSubject, aTopic, aData)
   {
     if (aTopic == "xpcom-shutdown") {
       Services.obs.removeObserver(this, "xpcom-shutdown");
       Services.obs.removeObserver(this, "inner-window-destroyed");
       Services.obs.removeObserver(this, "memory-pressure");
-      delete _consoleStorage;
     }
     else if (aTopic == "inner-window-destroyed") {
       let innerWindowID = aSubject.QueryInterface(Ci.nsISupportsPRUint64).data;
       this.clearEvents(innerWindowID);
     }
     else if (aTopic == "memory-pressure") {
       /* Handle both low-memory and low-memory-no-forward events */
       if (aData.startsWith("low-memory")) {