Bug 1148641 - Guard against null parameters to SendSetTargetAPZCNotification. r=botond

This commit is contained in:
Kartikaya Gupta 2015-04-02 06:57:45 -04:00
parent aa63153f3d
commit d2ddce5eba

View File

@ -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;