Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
bug 1340903 - work around binding child docs to non outer DocAccessib…
Browse files Browse the repository at this point in the history
…les r=eeejay
  • Loading branch information
tbsaunde committed Feb 22, 2017
1 parent b827dc2 commit d52ddb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions accessible/ipc/DocAccessibleParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,11 @@ DocAccessibleParent::AddChildDoc(DocAccessibleParent* aChildDoc,
// here.
if (outerDoc->ChildrenCount() > 1 ||
(outerDoc->ChildrenCount() == 1 && !outerDoc->ChildAt(0)->IsDoc())) {
#ifdef DEBUG
return IPC_FAIL(this, "binding to proxy that can't be a outerDoc!");
#else
return IPC_OK();
#endif
}

aChildDoc->SetParent(outerDoc);
Expand Down

0 comments on commit d52ddb1

Please sign in to comment.