From ad5e9449d2ec885ce547ed44ac3be066de803784 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 25 Jul 2020 17:31:58 +0000 Subject: Issue #1587 Part 12 (followup 2): Allow clearing of signal by setting to null. --- dom/fetch/FetchDriver.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dom/fetch/FetchDriver.cpp') 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); -- cgit v1.2.3