Bug 1781169 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The crash range makes sense because caching is only enabled on nightly (and was briefly enabled on beta).

Jamie, my theory is that `TextRange::CommonParent` is getting null when (retrieving a cached `GetChildAtOffset`)[https://searchfox.org/mozilla-central/source/accessible/base/TextRange.cpp#192], and then `CommonParent` crashes because it de-references aAcc1 when trying to get a parent.

Is there a state (specifically in the context of recieving a text selection changed event) when the offset cache/hierarchy cache might be out of sync? If nothing comes to mind, I can just paper over it in `TextRange::CommonParent`.
The crash range makes sense because caching is only enabled on nightly (and was briefly enabled on beta).

Jamie, my theory is that `TextRange::CommonParent` is getting null when [retrieving a cached `GetChildAtOffset`](https://searchfox.org/mozilla-central/source/accessible/base/TextRange.cpp#192), and then `CommonParent` crashes because it de-references aAcc1 when trying to get a parent.

Is there a state (specifically in the context of recieving a text selection changed event) when the offset cache/hierarchy cache might be out of sync? If nothing comes to mind, I can just paper over it in `TextRange::CommonParent`.

Back to Bug 1781169 Comment 2