mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 663229 - e10s HTTP: initialize prnetaddrs correctly in child. r=jdm
This commit is contained in:
parent
496e39c64c
commit
922a508a0e
@ -344,6 +344,9 @@ struct ParamTraits<PRNetAddr>
|
||||
WriteParam(aMsg, aParam.ipv6.scope_id);
|
||||
#if defined(XP_UNIX) || defined(XP_OS2)
|
||||
} else if (aParam.raw.family == PR_AF_LOCAL) {
|
||||
// Train's already off the rails: let's get a stack trace at least...
|
||||
NS_RUNTIMEABORT("Error: please post stack trace to "
|
||||
"https://bugzilla.mozilla.org/show_bug.cgi?id=661158");
|
||||
aMsg->WriteBytes(aParam.local.path, sizeof(aParam.local.path));
|
||||
#endif
|
||||
}
|
||||
|
@ -87,6 +87,10 @@ HttpBaseChannel::HttpBaseChannel()
|
||||
|
||||
// grab a reference to the handler to ensure that it doesn't go away.
|
||||
NS_ADDREF(gHttpHandler);
|
||||
|
||||
// Subfields of unions cannot be targeted in an initializer list
|
||||
mSelfAddr.raw.family = PR_AF_UNSPEC;
|
||||
mPeerAddr.raw.family = PR_AF_UNSPEC;
|
||||
}
|
||||
|
||||
HttpBaseChannel::~HttpBaseChannel()
|
||||
|
@ -138,9 +138,6 @@ nsHttpChannel::nsHttpChannel()
|
||||
LOG(("Creating nsHttpChannel [this=%p]\n", this));
|
||||
mChannelCreationTime = PR_Now();
|
||||
mChannelCreationTimestamp = mozilla::TimeStamp::Now();
|
||||
// Subfields of unions cannot be targeted in an initializer list
|
||||
mSelfAddr.raw.family = PR_AF_UNSPEC;
|
||||
mPeerAddr.raw.family = PR_AF_UNSPEC;
|
||||
}
|
||||
|
||||
nsHttpChannel::~nsHttpChannel()
|
||||
|
Loading…
Reference in New Issue
Block a user