Remove assertion for wrong process as NVDA does this draft
authorAaron Klotz <aklotz@mozilla.com>
Wed, 12 Oct 2016 18:24:39 -0600
changeset 485452 4e6b145ed79fee8460d98d2449f00e45c4dc15f0
parent 485451 1b3795ad7f6a6d76ee117b599af3f76f895f013a
child 485453 d6e9cb94a48146c0cbee3dda236f4cf074230c18
push id45733
push useraklotz@mozilla.com
push dateThu, 16 Feb 2017 17:45:58 +0000
milestone54.0a1
Remove assertion for wrong process as NVDA does this MozReview-Commit-ID: 3KWiFscGXp8
accessible/windows/msaa/AccessibleWrap.cpp
--- a/accessible/windows/msaa/AccessibleWrap.cpp
+++ b/accessible/windows/msaa/AccessibleWrap.cpp
@@ -1428,18 +1428,16 @@ AccessibleWrap::GetIAccessibleFor(const 
   // If the MSAA ID is not a chrome id then we already know that we won't
   // find it here and should look remotely instead. This handles the case when
   // accessible is part of the chrome process and is part of the xul browser
   // window and the child id points in the content documents. Thus we need to
   // make sure that it is never called on proxies.
   if (XRE_IsParentProcess() && !IsProxy() && !sIDGen.IsChromeID(varChild.lVal)) {
     return GetRemoteIAccessibleFor(varChild);
   }
-  MOZ_ASSERT(XRE_IsParentProcess() ||
-             sIDGen.IsIDForThisContentProcess(varChild.lVal));
 
   if (varChild.lVal > 0) {
     // Gecko child indices are 0-based in contrast to indices used in MSAA.
     MOZ_ASSERT(!IsProxy());
     Accessible* xpAcc = GetChildAt(varChild.lVal - 1);
     if (!xpAcc) {
       return nullptr;
     }