summaryrefslogtreecommitdiffstats
path: root/dom/fetch/FetchDriver.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-25 17:31:58 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-25 17:31:58 +0000
commitf0ef003f36904d81ea5762c8879496bc355ac5b0 (patch)
tree71aa3b3dfefb9bc78caf8267856ade7dcb5420af /dom/fetch/FetchDriver.cpp
parent84cb854842cb4aecc2a3bee93c7a2698715643c8 (diff)
downloadUXP-f0ef003f36904d81ea5762c8879496bc355ac5b0.tar
UXP-f0ef003f36904d81ea5762c8879496bc355ac5b0.tar.gz
UXP-f0ef003f36904d81ea5762c8879496bc355ac5b0.tar.lz
UXP-f0ef003f36904d81ea5762c8879496bc355ac5b0.tar.xz
UXP-f0ef003f36904d81ea5762c8879496bc355ac5b0.zip
Issue #1587 Part 12 (followup 2): Allow clearing of signal by setting to null.
Diffstat (limited to 'dom/fetch/FetchDriver.cpp')
-rw-r--r--dom/fetch/FetchDriver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/fetch/FetchDriver.cpp b/dom/fetch/FetchDriver.cpp
index 067e32db4..fd1e99a2b 100644
--- a/dom/fetch/FetchDriver.cpp
+++ b/dom/fetch/FetchDriver.cpp
@@ -499,6 +499,11 @@ FetchDriver::OnStartRequest(nsIRequest* aRequest,
return rv;
}
+ if (!mChannel) {
+ MOZ_ASSERT(!mObserver);
+ return NS_BINDING_ABORTED;
+ }
+
// We should only get to the following code once.
MOZ_ASSERT(!mPipeOutputStream);
MOZ_ASSERT(mObserver);