зеркало из https://github.com/mozilla/gecko-dev.git
fixes bug 312537 "###!!! ASSERTION: no content length: 'channelContentLength != -1', file /opt/source/mozilla/trunk-ff/mozilla/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp, line 891" patch by Ben Fowler (bfowler@ewitness.co.uk), r=darin
This commit is contained in:
Родитель
8963531bf8
Коммит
0a4d9e0455
|
@ -885,7 +885,9 @@ NS_IMETHODIMP nsWebBrowserPersist::OnDataAvailable(
|
|||
if ((-1 == channelContentLength) ||
|
||||
((channelContentLength - (aOffset + aLength)) == 0))
|
||||
{
|
||||
NS_ASSERTION(channelContentLength != -1, "no content length");
|
||||
NS_WARN_IF_FALSE(channelContentLength != -1,
|
||||
"nsWebBrowserPersist::OnDataAvailable() no content length "
|
||||
"header, pushing what we have");
|
||||
// we're done with this pass; see if we need to do upload
|
||||
nsCAutoString contentType;
|
||||
channel->GetContentType(contentType);
|
||||
|
|
Загрузка…
Ссылка в новой задаче