summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHonza Bambas <honzab.moz@firemni.cz>2019-07-19 17:28:56 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-22 12:19:30 +0200
commitbb3df4d153b488ebc8aaa89509ae4b5e739312cc (patch)
treefdff939c82ba368acaf81fc410228f7bdb1613ff
parentc10e2aefdcab00e44c2c307e8b571c72fff8575b (diff)
downloaduxp-bb3df4d153b488ebc8aaa89509ae4b5e739312cc.tar.gz
Bug 1550498.
-rw-r--r--netwerk/protocol/http/nsHttpConnectionMgr.cpp8
-rw-r--r--netwerk/protocol/http/nsHttpHandler.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/netwerk/protocol/http/nsHttpConnectionMgr.cpp b/netwerk/protocol/http/nsHttpConnectionMgr.cpp
index 907f33436c..43081f19a1 100644
--- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp
+++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp
@@ -504,9 +504,13 @@ nsHttpConnectionMgr::UpdateParam(nsParamName name, uint16_t value)
}
nsresult
-nsHttpConnectionMgr::ProcessPendingQ(nsHttpConnectionInfo *ci)
+nsHttpConnectionMgr::ProcessPendingQ(nsHttpConnectionInfo* aCI)
{
- LOG(("nsHttpConnectionMgr::ProcessPendingQ [ci=%s]\n", ci->HashKey().get()));
+ LOG(("nsHttpConnectionMgr::ProcessPendingQ [ci=%s]\n", aCI->HashKey().get()));
+ RefPtr<nsHttpConnectionInfo> ci;
+ if (aCI) {
+ ci = aCI->Clone();
+ }
return PostEvent(&nsHttpConnectionMgr::OnMsgProcessPendingQ, 0, ci);
}
diff --git a/netwerk/protocol/http/nsHttpHandler.h b/netwerk/protocol/http/nsHttpHandler.h
index 67b9ebe0eb..402147577a 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