зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1655652: Prevent bogus assertion in IsDefunct() for DummyAccessibles. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D85710
This commit is contained in:
Родитель
820348e12f
Коммит
f26ee07ab8
|
@ -107,7 +107,11 @@ class EnumRoleAccessible : public AccessibleWrap {
|
|||
class DummyAccessible : public AccessibleWrap {
|
||||
public:
|
||||
explicit DummyAccessible(DocAccessible* aDocument = nullptr)
|
||||
: AccessibleWrap(nullptr, aDocument) {}
|
||||
: AccessibleWrap(nullptr, aDocument) {
|
||||
// IsDefunct() asserts if mContent is null, which is always true for
|
||||
// DummyAccessible. We can prevent this by setting eSharedNode.
|
||||
mStateFlags |= eSharedNode;
|
||||
}
|
||||
|
||||
uint64_t NativeState() const final;
|
||||
uint64_t NativeInteractiveState() const final;
|
||||
|
|
Загрузка…
Ссылка в новой задаче