Commit c182f5a5 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

accessiblity: AXObjectCacheImpl: Clear mojo receiver

PermissionObserver kept receiving messages after the object was
considered dead (and thus being poisoned) by the garbage collector.

Actual destruction of the object is deferred which means the receiver
should be cleared on Dispose.

Bug: 991085
Change-Id: I701dfa9aad19b30b95cc42f00195668c33393a96
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1743727Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#685485}
parent 97118958
...@@ -140,6 +140,8 @@ void AXObjectCacheImpl::Dispose() { ...@@ -140,6 +140,8 @@ void AXObjectCacheImpl::Dispose() {
document->View()->UnregisterFromLifecycleNotifications(this); document->View()->UnregisterFromLifecycleNotifications(this);
} }
permission_observer_receiver_.reset();
#if DCHECK_IS_ON() #if DCHECK_IS_ON()
has_been_disposed_ = true; has_been_disposed_ = true;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment