diff options
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index efb8a80d2..da69e21b3 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -220,6 +220,7 @@ EphyModalAlertEventListener::HandleEvent (nsIDOMEvent * aDOMEvent) /* make sure the event is trusted */ nsCOMPtr<nsIDOMNSEvent> nsEvent (do_QueryInterface (aDOMEvent)); + NS_ENSURE_TRUE (nsEvent, NS_ERROR_FAILURE); PRBool isTrusted = PR_FALSE; nsEvent->GetIsTrusted (&isTrusted); if (!isTrusted) return NS_OK; |