mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1213606 - work around proxy's that don't have a wrapper for their document r=davidb
This commit is contained in:
parent
48d5a0eaf9
commit
35d1660e61
@ -61,14 +61,17 @@ a11y::ProxyDestroyed(ProxyAccessible* aProxy)
|
|||||||
|
|
||||||
auto doc =
|
auto doc =
|
||||||
static_cast<DocProxyAccessibleWrap*>(WrapperFor(aProxy->Document()));
|
static_cast<DocProxyAccessibleWrap*>(WrapperFor(aProxy->Document()));
|
||||||
|
MOZ_ASSERT(doc);
|
||||||
|
if (doc) {
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
uint32_t id = wrapper->GetExistingID();
|
uint32_t id = wrapper->GetExistingID();
|
||||||
if (id != AccessibleWrap::kNoID) {
|
if (id != AccessibleWrap::kNoID) {
|
||||||
doc->RemoveID(id);
|
doc->RemoveID(id);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
doc->RemoveID(-reinterpret_cast<int32_t>(wrapper));
|
doc->RemoveID(-reinterpret_cast<int32_t>(wrapper));
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
wrapper->Shutdown();
|
wrapper->Shutdown();
|
||||||
aProxy->SetWrapper(0);
|
aProxy->SetWrapper(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user