Bug 598790 - nullcheck canceled channel in prefetchnode::onstoprequest r=bz

This commit is contained in:
Patrick McManus 2016-02-05 12:25:20 -05:00
Родитель 197da838c4
Коммит 66dc207acc
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -217,7 +217,7 @@ nsPrefetchNode::OnStopRequest(nsIRequest *aRequest,
{ {
LOG(("done prefetching [status=%x]\n", aStatus)); LOG(("done prefetching [status=%x]\n", aStatus));
if (mBytesRead == 0 && aStatus == NS_OK) { if (mBytesRead == 0 && aStatus == NS_OK && mChannel) {
// we didn't need to read (because LOAD_ONLY_IF_MODIFIED was // we didn't need to read (because LOAD_ONLY_IF_MODIFIED was
// specified), but the object should report loadedSize as if it // specified), but the object should report loadedSize as if it
// did. // did.