diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-25 17:31:58 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-28 10:38:16 +0000 |
commit | ad5e9449d2ec885ce547ed44ac3be066de803784 (patch) | |
tree | 92e8e036fb6d47ef838d27c658b3f49c47ab0cf2 /dom/fetch/FetchDriver.cpp | |
parent | 71848c23a4d09bbb7eff1b27d2cb28904e35240d (diff) | |
download | UXP-ad5e9449d2ec885ce547ed44ac3be066de803784.tar UXP-ad5e9449d2ec885ce547ed44ac3be066de803784.tar.gz UXP-ad5e9449d2ec885ce547ed44ac3be066de803784.tar.lz UXP-ad5e9449d2ec885ce547ed44ac3be066de803784.tar.xz UXP-ad5e9449d2ec885ce547ed44ac3be066de803784.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.cpp | 5 |
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); |