mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1750550: Null check aAttributes in ConvertToAtkTextAttributeSet. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D136303
This commit is contained in:
parent
d292d48758
commit
432bc6dbfa
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user