Bug 1301333 - mark Init as initialisation function for EventSource. r=baku
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Thu, 08 Sep 2016 12:40:46 +0300
changeset 313238 7697db0f0887b68ac1212196edacebc607ad20d0
parent 313237 2374e3ecf070b71e4e6cecc877785be383785064
child 313239 a2244cff45f38d704ea99a374e129f2ebc693b8c
push id30676
push userkwierso@gmail.com
push dateThu, 08 Sep 2016 22:22:24 +0000
treeherdermozilla-central@176aff980979 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1301333
milestone51.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 1301333 - mark Init as initialisation function for EventSource. r=baku MozReview-Commit-ID: Ef8oHnmrZM8
dom/base/EventSource.h
--- a/dom/base/EventSource.h
+++ b/dom/base/EventSource.h
@@ -93,16 +93,17 @@ public:
   IMPL_EVENT_HANDLER(error)
   void Close();
 
   virtual void DisconnectFromOwner() override;
 
 protected:
   virtual ~EventSource();
 
+  MOZ_IS_CLASS_INIT
   nsresult Init(nsISupports* aOwner,
                 const nsAString& aURL,
                 bool aWithCredentials);
 
   nsresult GetBaseURI(nsIURI **aBaseURI);
 
   void SetupHttpChannel();
   nsresult SetupReferrerPolicy();