Bug 1313385 - WebSocketImpl::mSecure should be initialized in the CTOR, r=qdot
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 27 Oct 2016 20:16:15 +0200
changeset 319841 b734eaa69060ed01419c9a8dd4760c88aed16197
parent 319838 a8bb58ecb17df251c552f8e01b2d599abc64d127
child 319842 76d7f4eb6100ffc26f0142688d3c797ee8fefa6e
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot
bugs1313385
milestone52.0a1
Bug 1313385 - WebSocketImpl::mSecure should be initialized in the CTOR, r=qdot
dom/base/WebSocket.cpp
--- a/dom/base/WebSocket.cpp
+++ b/dom/base/WebSocket.cpp
@@ -83,16 +83,17 @@ public:
   NS_DECL_NSIREQUEST
   NS_DECL_THREADSAFE_ISUPPORTS
   NS_DECL_NSIEVENTTARGET
   using nsIEventTarget::Dispatch;
 
   explicit WebSocketImpl(WebSocket* aWebSocket)
   : mWebSocket(aWebSocket)
   , mIsServerSide(false)
+  , mSecure(false)
   , mOnCloseScheduled(false)
   , mFailed(false)
   , mDisconnectingOrDisconnected(false)
   , mCloseEventWasClean(false)
   , mCloseEventCode(nsIWebSocketChannel::CLOSE_ABNORMAL)
   , mScriptLine(0)
   , mScriptColumn(0)
   , mInnerWindowID(0)