From bd6023522df412aebfa4e0a35a908f562759e2a0 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Mon, 8 May 2006 05:31:12 +0000 Subject: [PATCH] Observe shutdown too. Bug 336922 followup, r=mconnor, sr=darin, branch181=mconnor --- .../components/microsummaries/src/nsMicrosummaryService.js.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/browser/components/microsummaries/src/nsMicrosummaryService.js.in b/browser/components/microsummaries/src/nsMicrosummaryService.js.in index cf4b659c25b9..3f54183b6eb7 100644 --- a/browser/components/microsummaries/src/nsMicrosummaryService.js.in +++ b/browser/components/microsummaries/src/nsMicrosummaryService.js.in @@ -180,6 +180,7 @@ MicrosummaryService.prototype = { //if (!this.interfaces.some( function(v) { return iid.equals(v) } )) if (!iid.equals(Ci.nsIMicrosummaryService) && !iid.equals(Ci.nsIObserver) && + !iid.equals(Ci.nsISupportsWeakReference) && !iid.equals(Ci.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; @@ -197,6 +198,7 @@ MicrosummaryService.prototype = { var obs = Cc["@mozilla.org/observer-service;1"]. getService(Ci.nsIObserverService); obs.addObserver(this, "profile-after-change", false); + obs.addObserver(this, "xpcom-shutdown", true); break; case "profile-after-change": var obs = Cc["@mozilla.org/observer-service;1"].