Bug 1447194 - Use threadsafe refcounting in all nsIURI implementations r=mayhemer
authorValentin Gosu <valentin.gosu@gmail.com>
Tue, 20 Mar 2018 15:51:17 +0100
changeset 409574 770603f0efe14b2c7fbf60875535f240b09e2915
parent 409573 69de9f5b90681b6e789c982bb52e5d1041c00383
child 409575 e39a944f310fdc7dfc35b45792ee99f0265c47de
push id101247
push usernerli@mozilla.com
push dateThu, 22 Mar 2018 23:00:51 +0000
treeherdermozilla-inbound@02e384bdf97d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmayhemer
bugs1447194
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1447194 - Use threadsafe refcounting in all nsIURI implementations r=mayhemer It seem that only nsStandardURL and nsSimpleURI (and classes that inherit them) do not have threadsafe refcounting yet. MozReview-Commit-ID: J8gLoBSPCTl
netwerk/base/nsSimpleURI.h
netwerk/base/nsStandardURL.h
--- a/netwerk/base/nsSimpleURI.h
+++ b/netwerk/base/nsSimpleURI.h
@@ -35,17 +35,17 @@ class nsSimpleURI
     , public nsISizeOf
     , public nsIIPCSerializableURI
 {
 protected:
     nsSimpleURI();
     virtual ~nsSimpleURI();
 
 public:
-    NS_DECL_ISUPPORTS
+    NS_DECL_THREADSAFE_ISUPPORTS
     NS_DECL_NSIURI
     NS_DECL_NSISERIALIZABLE
     NS_DECL_NSICLASSINFO
     NS_DECL_NSIMUTABLE
     NS_DECL_NSIIPCSERIALIZABLEURI
 
     static already_AddRefed<nsSimpleURI> From(nsIURI* aURI);
 
--- a/netwerk/base/nsStandardURL.h
+++ b/netwerk/base/nsStandardURL.h
@@ -53,17 +53,17 @@ class nsStandardURL : public nsIFileURL
                     , public LinkedListElement<nsStandardURL>
 #endif
 {
 protected:
     virtual ~nsStandardURL();
     explicit nsStandardURL(bool aSupportsFileURL = false, bool aTrackURL = true);
 
 public:
-    NS_DECL_ISUPPORTS
+    NS_DECL_THREADSAFE_ISUPPORTS
     NS_DECL_NSIURI
     NS_DECL_NSIURL
     NS_DECL_NSIFILEURL
     NS_DECL_NSISTANDARDURL
     NS_DECL_NSISERIALIZABLE
     NS_DECL_NSICLASSINFO
     NS_DECL_NSIMUTABLE
     NS_DECL_NSIIPCSERIALIZABLEURI