Bug 663229 - e10s HTTP: initialize prnetaddrs correctly in child. r=jdm

This commit is contained in:
Jason Duell 2011-06-09 14:02:09 -07:00
parent 496e39c64c
commit 922a508a0e
3 changed files with 7 additions and 3 deletions

View File

@ -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
}

View File

@ -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()

View File

@ -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()