Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 8a566a1

Browse files
committed
Bug 1942217 - Stop using weak ref in FormHistory.sys.mjs. r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D234782
1 parent efc472b commit 8a566a1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

toolkit/components/satchel/FormHistory.sys.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ var Prefs = {
117117
this._initialized = true;
118118

119119
this._prefBranch = Services.prefs.getBranch("browser.formfill.");
120-
this._prefBranch.addObserver("", this, true);
120+
this._prefBranch.addObserver("", this);
121121

122122
this._agedWeight = this._prefBranch.getIntPref("agedWeight");
123123
this._boundaryWeight = this._prefBranch.getIntPref("boundaryWeight");
@@ -172,10 +172,7 @@ var Prefs = {
172172
}
173173
},
174174

175-
QueryInterface: ChromeUtils.generateQI([
176-
"nsIObserver",
177-
"nsISupportsWeakReference",
178-
]),
175+
QueryInterface: ChromeUtils.generateQI(["nsIObserver"]),
179176
};
180177

181178
function log(aMessage) {

0 commit comments

Comments
 (0)