diff --git a/dom/ipc/Blob.cpp b/dom/ipc/Blob.cpp index bfabf12ed3e8..6754f1ac7fe3 100644 --- a/dom/ipc/Blob.cpp +++ b/dom/ipc/Blob.cpp @@ -955,6 +955,8 @@ private: MOZ_ASSERT(!mSlice); MOZ_ASSERT(!mDone); + NS_ENSURE_TRUE_VOID(mActor->Manager()); + NormalBlobConstructorParams normalParams; normalParams.contentType() = mContentType; normalParams.length() = mLength; @@ -1352,6 +1354,8 @@ Blob::ActorDestroy(ActorDestroyReason aWhy) if (mBlob && mOwnsBlob) { mBlob->Release(); } + + mManager = nullptr; } template