Skip to content
Snippets Groups Projects
Commit 3c3009e0 authored by James Teh's avatar James Teh
Browse files

Bug 1750550: Null check aAttributes in ConvertToAtkTextAttributeSet. r=eeejay, a=RyanVM

parent e5aaac5d
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,12 @@ void ConvertTextAttributeToAtkAttribute(const nsACString& aName,
static AtkAttributeSet* ConvertToAtkTextAttributeSet(
AccAttributes* aAttributes) {
if (!aAttributes) {
// This can happen if an Accessible dies in the content process, but the
// parent hasn't been udpated yet.
return nullptr;
}
AtkAttributeSet* objAttributeSet = nullptr;
for (auto iter : *aAttributes) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment