Closed Bug 106736 Opened 23 years ago Closed 23 years ago

nsSingleSignOnProfileObserver added as a weak reference.

Categories

(Core :: XPCOM, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dougt, Assigned: dougt)

References

Details

My changes to nsWalletService wrongly added the nsSingleSignOnProfileObserver as
a weak reference to the observer service.  This patch fixes it.

Index: nsWalletService.cpp
===================================================================
RCS file: /cvsroot/mozilla/extensions/wallet/src/nsWalletService.cpp,v
retrieving revision 1.121
diff -u -r1.121 nsWalletService.cpp
--- nsWalletService.cpp	2001/10/23 22:07:29	1.121
+++ nsWalletService.cpp	2001/10/25 17:39:27
@@ -590,7 +590,7 @@
     if (!svc) return NS_ERROR_FAILURE;
     // The observer service holds the only ref to the observer
     // It thus has the lifespan of the observer service
-    svc->AddObserver(observer, "profile-before-change", PR_TRUE);
+    svc->AddObserver(observer, "profile-before-change", PR_FALSE);
     mgRegisteredObserver = PR_TRUE;
   }
   return NS_OK;
r=morse
*** Bug 106804 has been marked as a duplicate of this bug. ***
fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.