Bug 1313385 - WebSocketImpl::mSecure should be initialized in the CTOR, r=qdot a=gchang
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 27 Oct 2016 20:16:15 +0200
changeset 358655 0caed9e822ed431f49a0aa827bdcc1f896b166f1
parent 358654 2479fc9c08cae56e784117837e5b8f0780cd868d
child 358656 f10cd5ee7c4e49464acef6cd9b4e48fecf47e9bb
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot, gchang
bugs1313385
milestone51.0a2
Bug 1313385 - WebSocketImpl::mSecure should be initialized in the CTOR, r=qdot a=gchang
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)