Bug 999686 - Don't MOZ_CRASH in CompositableHost on bad IPC message params - r=sotaro

This commit is contained in:
Benoit Jacob 2014-04-23 10:41:18 -04:00
parent f7f777c391
commit 8c9619e4b1

View File

@ -117,7 +117,7 @@ CompositableHost::Create(const TextureInfo& aTextureInfo)
RefPtr<CompositableHost> result;
switch (aTextureInfo.mCompositableType) {
case BUFFER_BRIDGE:
MOZ_CRASH("Cannot create an image bridge compositable this way");
NS_ERROR("Cannot create an image bridge compositable this way");
break;
case BUFFER_CONTENT_INC:
result = new ContentHostIncremental(aTextureInfo);
@ -136,7 +136,7 @@ CompositableHost::Create(const TextureInfo& aTextureInfo)
result = new ContentHostDoubleBuffered(aTextureInfo);
break;
default:
MOZ_CRASH("Unknown CompositableType");
NS_ERROR("Unknown CompositableType");
}
// We know that Tiled buffers don't use the compositable backend-specific
// data, so don't bother creating it.