mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 968542 - Prevent IPC blobs from entraining ContentParent objects. r=bent
This commit is contained in:
parent
8e4c34ac59
commit
43a19a73a5
@ -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<ActorFlavor>::ActorDestroy(ActorDestroyReason aWhy)
|
||||
if (mBlob && mOwnsBlob) {
|
||||
mBlob->Release();
|
||||
}
|
||||
|
||||
mManager = nullptr;
|
||||
}
|
||||
|
||||
template <ActorFlavorEnum ActorFlavor>
|
||||
|
Loading…
Reference in New Issue
Block a user