Bug 696478 - Use weak references. r=mak.

This commit is contained in:
Rafael Ávila de Espíndola
2011-11-04 11:24:54 -04:00
parent 5224b40cc2
commit ce0a5eaea9

View File

@@ -73,7 +73,7 @@ FormAutoComplete.prototype = {
// Preferences. Add observer so we get notified of changes.
this._prefBranch = Services.prefs.getBranch("browser.formfill.");
this._prefBranch.QueryInterface(Ci.nsIPrefBranch2);
this._prefBranch.addObserver("", this.observer, false);
this._prefBranch.addObserver("", this.observer, true);
this.observer._self = this;
this._debug = this._prefBranch.getBoolPref("debug");
@@ -86,7 +86,7 @@ FormAutoComplete.prototype = {
this._dbStmts = [];
Services.obs.addObserver(this.observer, "xpcom-shutdown", false);
Services.obs.addObserver(this.observer, "xpcom-shutdown", true);
},
observer : {