diff --git a/gfx/layers/ipc/ShadowLayersParent.cpp b/gfx/layers/ipc/ShadowLayersParent.cpp index 2808551bf8a2..c2237e9badd1 100644 --- a/gfx/layers/ipc/ShadowLayersParent.cpp +++ b/gfx/layers/ipc/ShadowLayersParent.cpp @@ -287,7 +287,9 @@ ShadowLayersParent::RecvUpdate(const InfallibleTArray& cset, MOZ_LAYERS_LOG(("[ParentSide] SetRoot")); mRoot = AsShadowLayer(edit.get_OpSetRoot())->AsContainer(); - mLayerManager->SetRoot(mRoot); + if (mHost->GetCompositorParent()) { + mLayerManager->SetRoot(mRoot); + } break; } case Edit::TOpInsertAfter: {