From 66dc207acc575f4d8e7add575f35b4908b708478 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 c1b56c8e6912..8d457bb0482b 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.