mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 585291 - FormEngine tests leak [r=mconnor]
Nuke service references on xpcom-shutdown, particularly Svc.Form (nsIFormHistory2) which doesn't clean up after itself as it was only used by nsIFormAutComplete so far.
This commit is contained in:
parent
0b3664b843
commit
280a8f839d
@ -918,3 +918,8 @@ Svc.Obs = Observers;
|
||||
let Str = {};
|
||||
["errors", "sync"]
|
||||
.forEach(function(lazy) Utils.lazy2(Str, lazy, Utils.lazyStrings(lazy)));
|
||||
|
||||
Svc.Obs.add("xpcom-shutdown", function () {
|
||||
for (let name in Svc)
|
||||
delete Svc[name];
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user