From 2070015cd24c4d1566cfe7427a1f4e9fc96d3037 Mon Sep 17 00:00:00 2001 From: Patrick McManus Date: Fri, 5 Feb 2016 12:25:20 -0500 Subject: [PATCH] Bug 598790 - nullcheck canceled channel in prefetchnode::onstoprequest r=bz --- uriloader/prefetch/nsPrefetchService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uriloader/prefetch/nsPrefetchService.cpp b/uriloader/prefetch/nsPrefetchService.cpp index c1b56c8e691..8d457bb0482 100644 --- a/uriloader/prefetch/nsPrefetchService.cpp +++ b/uriloader/prefetch/nsPrefetchService.cpp @@ -217,7 +217,7 @@ nsPrefetchNode::OnStopRequest(nsIRequest *aRequest, { 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 // specified), but the object should report loadedSize as if it // did.