Bug 1329350, JsAccount should use nsISupportsWeakReference, r=jorgk
authorR Kent James <rkent@caspia.com>
Wed, 11 Jan 2017 13:28:41 -0800
changeset 20997 61ba2b00b6690e9975abe19b0e03e375702faa35
parent 20996 7e17cf07b4e8448ffe395a81812e2f9d3b8014da
child 20998 6e08e4db98838348b9dbc54fe83f25e195a91096
push id12737
push userkent@caspia.com
push dateWed, 11 Jan 2017 21:29:54 +0000
treeherdercomm-central@61ba2b00b669 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk
bugs1329350
Bug 1329350, JsAccount should use nsISupportsWeakReference, r=jorgk
mailnews/jsaccount/src/JaUrl.cpp
mailnews/jsaccount/src/JaUrl.h
--- a/mailnews/jsaccount/src/JaUrl.cpp
+++ b/mailnews/jsaccount/src/JaUrl.cpp
@@ -14,17 +14,18 @@
 
 // This file contains an implementation of mailnews URLs in JsAccount.
 
 namespace mozilla {
 namespace mailnews {
 
 NS_IMPL_ISUPPORTS_INHERITED(JaBaseCppUrl, nsMsgMailNewsUrl,
                             nsIMsgMessageUrl,
-                            nsIInterfaceRequestor)
+                            nsIInterfaceRequestor,
+                            nsISupportsWeakReference)
 
 // nsIMsgMailNewsUrl overrides
 NS_IMETHODIMP JaBaseCppUrl::GetFolder(nsIMsgFolder **aFolder)
 {
   NS_ENSURE_ARG_POINTER(aFolder);
   NS_IF_ADDREF(*aFolder = mFolder);
   return NS_OK;
 }
--- a/mailnews/jsaccount/src/JaUrl.h
+++ b/mailnews/jsaccount/src/JaUrl.h
@@ -24,17 +24,18 @@ namespace mozilla {
 namespace mailnews {
 
 /* Header file */
 
 // This class is an XPCOM component, usable in JS, that calls the methods
 // in the C++ base class (bypassing any JS override).
 class JaBaseCppUrl : public nsMsgMailNewsUrl,
                      public nsIMsgMessageUrl,
-                     public nsIInterfaceRequestor
+                     public nsIInterfaceRequestor,
+                     public nsSupportsWeakReference
 
 {
 public:
   NS_DECL_ISUPPORTS_INHERITED
   NS_DECL_NSIMSGMESSAGEURL
   NS_DECL_NSIINTERFACEREQUESTOR
   JaBaseCppUrl() { }