From 2d65b6dfc8808d58ac46f5b0e541d87929bf3603 Mon Sep 17 00:00:00 2001 From: James Teh Date: Thu, 1 Oct 2015 16:47:04 -0400 Subject: [PATCH] Bug 1210549 - Make proxied accessibles defunct when proxy dies r=tbsaunde --- accessible/windows/ProxyWrappers.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/accessible/windows/ProxyWrappers.h b/accessible/windows/ProxyWrappers.h index 2394f35e6b21..7ce2bb1e6550 100644 --- a/accessible/windows/ProxyWrappers.h +++ b/accessible/windows/ProxyWrappers.h @@ -26,6 +26,7 @@ class ProxyAccessibleWrap : public AccessibleWrap virtual void Shutdown() override { mBits.proxy = nullptr; + mStateFlags |= eIsDefunct; } }; @@ -39,7 +40,11 @@ public: mBits.proxy = aProxy; } - virtual void Shutdown() override { mBits.proxy = nullptr; } + virtual void Shutdown() override + { + mBits.proxy = nullptr; + mStateFlags |= eIsDefunct; + } }; class DocProxyAccessibleWrap : public HyperTextProxyAccessibleWrap