diff --git a/gfx/layers/ipc/ImageBridgeParent.cpp b/gfx/layers/ipc/ImageBridgeParent.cpp index c3a4a73e5e37..bcb811ab6929 100644 --- a/gfx/layers/ipc/ImageBridgeParent.cpp +++ b/gfx/layers/ipc/ImageBridgeParent.cpp @@ -86,7 +86,9 @@ ImageBridgeParent::RecvUpdate(const EditArray& aEdits, EditReplyArray* aReply) EditReplyVector replyv; for (EditArray::index_type i = 0; i < aEdits.Length(); ++i) { - ReceiveCompositableUpdate(aEdits[i], replyv); + if (!ReceiveCompositableUpdate(aEdits[i], replyv)) { + return false; + } } aReply->SetCapacity(replyv.size()); diff --git a/gfx/layers/ipc/LayerTransactionParent.cpp b/gfx/layers/ipc/LayerTransactionParent.cpp index 5748219e955b..d39806a32461 100644 --- a/gfx/layers/ipc/LayerTransactionParent.cpp +++ b/gfx/layers/ipc/LayerTransactionParent.cpp @@ -495,8 +495,10 @@ LayerTransactionParent::RecvUpdate(const InfallibleTArray& cset, break; } case Edit::TCompositableOperation: { - ReceiveCompositableUpdate(edit.get_CompositableOperation(), - replyv); + if (!ReceiveCompositableUpdate(edit.get_CompositableOperation(), + replyv)) { + return false; + } break; } case Edit::TOpAttachCompositable: {