Bug 696478 - Use weak references. r=mak.
This commit is contained in:
@@ -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 : {
|
||||
|
||||
Reference in New Issue
Block a user