mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 927586 - [@ nsDOMWindowUtils::GetIsTestControllingRefreshes(bool*)], add a null check, r=mccr
This commit is contained in:
parent
8a97f75bf5
commit
9d22dfaccc
@ -2385,8 +2385,9 @@ nsDOMWindowUtils::GetIsTestControllingRefreshes(bool *aResult)
|
||||
return NS_ERROR_DOM_SECURITY_ERR;
|
||||
}
|
||||
|
||||
nsPresContext* pc = GetPresContext();
|
||||
*aResult =
|
||||
GetPresContext()->RefreshDriver()->IsTestControllingRefreshesEnabled();
|
||||
pc ? pc->RefreshDriver()->IsTestControllingRefreshesEnabled() : false;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user