mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1148641 - Guard against null parameters to SendSetTargetAPZCNotification. r=botond
This commit is contained in:
parent
aa63153f3d
commit
d2ddce5eba
@ -628,6 +628,9 @@ APZCCallbackHelper::SendSetTargetAPZCNotification(nsIWidget* aWidget,
|
||||
uint64_t aInputBlockId,
|
||||
const nsRefPtr<SetTargetAPZCCallback>& aCallback)
|
||||
{
|
||||
if (!aWidget || !aDocument) {
|
||||
return;
|
||||
}
|
||||
if (nsIPresShell* shell = aDocument->GetShell()) {
|
||||
if (nsIFrame* rootFrame = shell->GetRootFrame()) {
|
||||
bool waitForRefresh = false;
|
||||
|
Loading…
Reference in New Issue
Block a user