From 98b6c0804b63dadeef50c46fc3299eed3ed823b8 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Tue, 21 Feb 2017 11:18:32 -0500 Subject: [PATCH] bug 1332690 - work around non existant proxies --- accessible/ipc/DocAccessibleParent.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/accessible/ipc/DocAccessibleParent.cpp b/accessible/ipc/DocAccessibleParent.cpp index 30c1c0b02329..0e1e0793f71c 100644 --- a/accessible/ipc/DocAccessibleParent.cpp +++ b/accessible/ipc/DocAccessibleParent.cpp @@ -411,8 +411,13 @@ DocAccessibleParent::AddChildDoc(DocAccessibleParent* aChildDoc, // We do not use GetAccessible here because we want to be sure to not get the // document it self. ProxyEntry* e = mAccessibles.GetEntry(aParentID); - if (!e) + if (!e) { +#ifdef DEBUG return IPC_FAIL(this, "binding to nonexistant proxy!"); +#else + return IPC_OK(); +#endif + } ProxyAccessible* outerDoc = e->mProxy; MOZ_ASSERT(outerDoc);