diff options
Diffstat (limited to 'embed/mozilla/EphySingle.cpp')
-rw-r--r-- | embed/mozilla/EphySingle.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/embed/mozilla/EphySingle.cpp b/embed/mozilla/EphySingle.cpp index e059b5344..b8814d4e6 100644 --- a/embed/mozilla/EphySingle.cpp +++ b/embed/mozilla/EphySingle.cpp @@ -34,7 +34,7 @@ #include <nsIServiceManager.h> #include <nsICookie2.h> -NS_IMPL_ISUPPORTS1(EphySingle, nsIObserver) +NS_IMPL_ISUPPORTS2(EphySingle, nsIObserver, nsISupportsWeakReference) EphySingle::EphySingle() : mOwner(nsnull) @@ -45,8 +45,6 @@ EphySingle::EphySingle() nsresult EphySingle::Init (EphyEmbedSingle *aOwner) { - LOG ("EphySingle::Init") - mObserverService = do_GetService ("@mozilla.org/observer-service;1"); NS_ENSURE_TRUE (mObserverService, NS_ERROR_FAILURE); @@ -59,6 +57,8 @@ EphySingle::Init (EphyEmbedSingle *aOwner) mOwner = aOwner; + LOG ("EphySingle::Init") + return NS_OK; } @@ -129,6 +129,8 @@ NS_IMETHODIMP EphySingle::Observe(nsISupports *aSubject, { nsresult rv = NS_OK; + LOG ("EphySingle::Observe topic %s", aTopic) + if (strcmp (aTopic, "cookie-changed") == 0) { /* "added" */ @@ -221,6 +223,8 @@ NS_IMETHODIMP EphySingle::Observe(nsISupports *aSubject, rv = NS_ERROR_FAILURE; } + LOG ("EphySingle::Observe %s", NS_SUCCEEDED (rv) ? "success" : "FAILURE") + return rv; } |