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:
Philipp von Weitershausen 2010-08-11 01:54:46 +02:00
Родитель 0b3664b843
Коммит 280a8f839d
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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];
});