bug 1465258 - remove load group workaround in new OCSP code r?jcj
The patch for
bug 1456489 included a workaround for the issue that origin
attributes weren't honored on channels that didn't have a load group set (
bug
1456742). Now that that's fixed, we don't need the workaround.
MozReview-Commit-ID: I4ExIqt6dYo
--- a/security/manager/ssl/nsNSSCallbacks.cpp
+++ b/security/manager/ssl/nsNSSCallbacks.cpp
@@ -277,22 +277,16 @@ OCSPRequest::Run()
return NotifyDone(NS_ERROR_FAILURE, lock);
}
rv = loadInfo->SetOriginAttributes(attrs);
if (NS_FAILED(rv)) {
return NotifyDone(rv, lock);
}
}
- // If we don't set a load group, the above origin attributes won't be honored
- // by necko. This seems to be a bug or at least an API confusion issue, hence
- // bug 1456742.
- nsCOMPtr<nsILoadGroup> lg = do_CreateInstance(NS_LOADGROUP_CONTRACTID);
- channel->SetLoadGroup(lg);
-
nsCOMPtr<nsIInputStream> uploadStream;
rv = NS_NewByteInputStream(getter_AddRefs(uploadStream),
reinterpret_cast<const char*>(mPOSTData.begin()),
mPOSTData.length());
if (NS_FAILED(rv)) {
return NotifyDone(rv, lock);
}
nsCOMPtr<nsIUploadChannel> uploadChannel(do_QueryInterface(channel));