Bug 864775 - Fix for test failures.
authorJosh Matthews <josh@joshmatthews.net>
Tue, 23 Apr 2013 19:40:14 +0200
changeset 129579 761a78c8ab0306c58b88eb5fef5f434e0cb11cf6
parent 129578 4676b8c35f46cf69769d289ec364983594e9b082
child 129580 424ddd76303b4d2fb7a5faf972d6714323c9e86c
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
bugs864775
milestone23.0a1
Bug 864775 - Fix for test failures.
dom/network/src/TCPSocket.js
--- a/dom/network/src/TCPSocket.js
+++ b/dom/network/src/TCPSocket.js
@@ -370,17 +370,17 @@ TCPSocket.prototype = {
     }
 
     LOG("SSL: " + that.ssl + "\n");
 
     if (this._inChild) {
       that._socketBridge = Cc["@mozilla.org/tcp-socket-child;1"]
                              .createInstance(Ci.nsITCPSocketChild);
       that._socketBridge.open(that, host, port, !!that._ssl,
-                              that._binaryType, this.useWin, this.useWin);
+                              that._binaryType, this.useWin, this.useWin || this);
       return that;
     }
 
     let transport = that._transport = this._createTransport(host, port, that._ssl);
     transport.setEventSink(that, Services.tm.currentThread);
     transport.securityCallbacks = new SecurityCallbacks(that);
 
     that._socketInputStream = transport.openInputStream(0, 0, 0);