Bug 889413 - FormWrapper._finalize is not a function. r=markh
authorRichard Newman <rnewman@mozilla.com>
Tue, 02 Jul 2013 15:09:17 -0700
changeset 137197 c193fdeb4932c8ba65fea39f43644f338d2f42bf
parent 137196 50901fae80b0747b23257137d5b4cf82b936b54e
child 137198 e26fd33b8c8338ae083f2131d0cc49e0d84c016c
push id1823
push userryanvm@gmail.com
push dateWed, 03 Jul 2013 13:15:22 +0000
treeherderfx-team@2cae857c17cb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs889413
milestone25.0a1
Bug 889413 - FormWrapper._finalize is not a function. r=markh
services/sync/modules/engines/forms.js
--- a/services/sync/modules/engines/forms.js
+++ b/services/sync/modules/engines/forms.js
@@ -199,17 +199,16 @@ FormStore.prototype = {
     FormWrapper._updateSpinningly(change);
   }
 };
 
 function FormTracker(name, engine) {
   Tracker.call(this, name, engine);
   Svc.Obs.add("weave:engine:start-tracking", this);
   Svc.Obs.add("weave:engine:stop-tracking", this);
-  Svc.Obs.add("profile-change-teardown", this);
 }
 FormTracker.prototype = {
   __proto__: Tracker.prototype,
 
   QueryInterface: XPCOMUtils.generateQI([
     Ci.nsIFormSubmitObserver,
     Ci.nsIObserver,
     Ci.nsISupportsWeakReference]),
@@ -241,19 +240,16 @@ FormTracker.prototype = {
         }
         break;
       case "satchel-storage-changed":
         if (data == "formhistory-add" || data == "formhistory-remove") {
           let guid = subject.QueryInterface(Ci.nsISupportsString).toString();
           this.trackEntry(guid);
         }
         break;
-    case "profile-change-teardown":
-      FormWrapper._finalize();
-      break;
     }
   },
 
   trackEntry: function (guid) {
     this.addChangedID(guid);
     this.score += SCORE_INCREMENT_MEDIUM;
   },