зеркало из https://github.com/mozilla/gecko-dev.git
Turns out this last fix is needed to fully fix Bug#45866
This commit is contained in:
Родитель
c4cbd8b7eb
Коммит
d0264fc690
|
@ -650,8 +650,10 @@ const PRInt32 kDefaultCertAllocLength = 2048;
|
|||
NS_IMETHODIMP
|
||||
CertDownloader::OnStartRequest(nsIChannel* channel, nsISupports* context)
|
||||
{
|
||||
channel->GetContentLength(&mContentLength);
|
||||
if (mContentLength == -1)
|
||||
nsresult rv;
|
||||
|
||||
rv = channel->GetContentLength(&mContentLength);
|
||||
if (rv != NS_OK || mContentLength == -1)
|
||||
mContentLength = kDefaultCertAllocLength;
|
||||
|
||||
mBufferOffset = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче