diff --git a/gfx/layers/composite/TextureHost.cpp b/gfx/layers/composite/TextureHost.cpp index 82a8c84bfac5..c439e867e2a6 100644 --- a/gfx/layers/composite/TextureHost.cpp +++ b/gfx/layers/composite/TextureHost.cpp @@ -61,6 +61,12 @@ TextureHost::CreateIPDLActor(ISurfaceAllocator* aAllocator, const SurfaceDescriptor& aSharedData, TextureFlags aFlags) { + if (aSharedData.type() == SurfaceDescriptor::TSurfaceDescriptorMemory && + !aAllocator->IsSameProcess()) + { + NS_ERROR("A client process is trying to peek at our address space using a MemoryTexture!"); + return nullptr; + } TextureParent* actor = new TextureParent(aAllocator); DebugOnly status = actor->Init(aSharedData, aFlags); MOZ_ASSERT(status);