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:
darin%meer.net 2006-04-04 22:51:02 +00:00
Родитель 8963531bf8
Коммит 0a4d9e0455
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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