summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol/http/nsHttpHandler.h
diff options
context:
space:
mode:
authorHonza Bambas <honzab.moz@firemni.cz>2019-07-19 17:28:56 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-19 17:28:56 +0200
commitb0a8ed215774469e1d5476d670bb9e2ccbd23ed8 (patch)
treeb55ceb7051955b6d42064f8481cfc7ee49529caf /netwerk/protocol/http/nsHttpHandler.h
parent15aff51ed922a54b02f638e6847f2fa040f7dd2c (diff)
downloadUXP-b0a8ed215774469e1d5476d670bb9e2ccbd23ed8.tar
UXP-b0a8ed215774469e1d5476d670bb9e2ccbd23ed8.tar.gz
UXP-b0a8ed215774469e1d5476d670bb9e2ccbd23ed8.tar.lz
UXP-b0a8ed215774469e1d5476d670bb9e2ccbd23ed8.tar.xz
UXP-b0a8ed215774469e1d5476d670bb9e2ccbd23ed8.zip
Bug 1550498.
Diffstat (limited to 'netwerk/protocol/http/nsHttpHandler.h')
-rw-r--r--netwerk/protocol/http/nsHttpHandler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/netwerk/protocol/http/nsHttpHandler.h b/netwerk/protocol/http/nsHttpHandler.h
index 67b9ebe0e..402147577 100644
--- a/netwerk/protocol/http/nsHttpHandler.h
+++ b/netwerk/protocol/http/nsHttpHandler.h
@@ -246,7 +246,8 @@ public:
uint32_t caps = 0)
{
TickleWifi(callbacks);
- return mConnMgr->SpeculativeConnect(ci, callbacks, caps);
+ RefPtr<nsHttpConnectionInfo> clone = ci->Clone();
+ return mConnMgr->SpeculativeConnect(clone, callbacks, caps);
}
// Alternate Services Maps are main thread only