Loading
Bug 1829167: Construct an invalid TextLeafPoint if null is supplied to the...
Bug 1829167: Construct an invalid TextLeafPoint if null is supplied to the constructor. r=nlapre, a=RyanVM DocAccessibleChildBase::RecvSetTextSelection and RecvScrollTextLeafRangeIntoView constructs TextLeafPoints without null checking the retrieved Accessible. This can be null if the Accessible was destroyed in the content process but the parent process didn't know about this yet when it sent the request. TextLeafPoint currently crashes if constructed with a null Accessible. These DocAccessibleChildBase methods do check the validity of the range, which will be invalid if the TextLeafPoints are invalid. Therefore, just construct an invalid TextLeafPoint if a null Accessible is given. Differential Revision: https://phabricator.services.mozilla.com/D176494