Bug 1977166: When moving a RemoteAccessible, ensure it doesn't still have a parent. a=diannaS
Original Revision: https://phabricator.services.mozilla.com/D257206 Differential Revision: https://phabricator.services.mozilla.com/D258841
This commit is contained in:
committed by
dsmith@mozilla.com
parent
448e041655
commit
d06a39a730
@@ -221,7 +221,11 @@ RemoteAccessible* DocAccessibleParent::CreateAcc(
|
||||
RemoteAccessible* newProxy;
|
||||
if ((newProxy = GetAccessible(aAccData.ID()))) {
|
||||
// This is a move. Reuse the Accessible; don't destroy it.
|
||||
MOZ_ASSERT(!newProxy->RemoteParent());
|
||||
if (newProxy->RemoteParent()) {
|
||||
MOZ_ASSERT_UNREACHABLE(
|
||||
"Attempt to move RemoteAccessible which still has a parent!");
|
||||
return nullptr;
|
||||
}
|
||||
return newProxy;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user