mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 10:27:03 +00:00
Bug 1868092 - Don't call DoPivot on a null leaf in caret move. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D195599
This commit is contained in:
parent
81c838d4b5
commit
45e41353ee
@ -163,10 +163,12 @@ void a11y::PlatformCaretMoveEvent(Accessible* aTarget, int32_t aOffset,
|
||||
// This is used mostly for find in page.
|
||||
Accessible* leaf = TextLeafPoint::GetCaret(aTarget).ActualizeCaret().mAcc;
|
||||
MOZ_ASSERT(leaf);
|
||||
if (Accessible* result = AccessibleWrap::DoPivot(
|
||||
leaf, java::SessionAccessibility::HTML_GRANULARITY_DEFAULT, true,
|
||||
true)) {
|
||||
sessionAcc->SendAccessibilityFocusedEvent(result);
|
||||
if (leaf) {
|
||||
if (Accessible* result = AccessibleWrap::DoPivot(
|
||||
leaf, java::SessionAccessibility::HTML_GRANULARITY_DEFAULT, true,
|
||||
true)) {
|
||||
sessionAcc->SendAccessibilityFocusedEvent(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user