From 78b22d1913e97a83f61a056d7c94dc2a3a5c1b12 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Tue, 6 Oct 2015 15:03:31 -0400 Subject: [PATCH] bug 1209615 - make remote primary docs RELATION_EMBEDS targets for atk r=davidb --- accessible/atk/AccessibleWrap.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/accessible/atk/AccessibleWrap.cpp b/accessible/atk/AccessibleWrap.cpp index f281924a52b..14bc2b78e74 100644 --- a/accessible/atk/AccessibleWrap.cpp +++ b/accessible/atk/AccessibleWrap.cpp @@ -985,6 +985,13 @@ UpdateAtkRelation(RelationType aType, Accessible* aAcc, while ((tempAcc = rel.Next())) targets.AppendElement(AccessibleWrap::GetAtkObject(tempAcc)); + if (aType == RelationType::EMBEDS && aAcc->IsRoot()) { + if (ProxyAccessible* proxyDoc = + aAcc->AsRoot()->GetPrimaryRemoteTopLevelContentDoc()) { + targets.AppendElement(GetWrapperFor(proxyDoc)); + } + } + if (targets.Length()) { atkRelation = atk_relation_new(targets.Elements(), targets.Length(), aAtkType);