зеркало из https://github.com/mozilla/pjs.git
164453 - Fixing a crasher in nsEventStateManager::DispatchNewEvent()
Fix contributed by Peter A Jonsson <pj@ludd.luth.se> r=bryner sr=jst
This commit is contained in:
Родитель
30933fccc7
Коммит
ad825cf796
|
@ -4298,7 +4298,7 @@ nsEventStateManager::DispatchNewEvent(nsISupports* aTarget, nsIDOMEvent* aEvent,
|
|||
nsresult ret = NS_OK;
|
||||
|
||||
nsCOMPtr<nsIPrivateDOMEvent> privEvt(do_QueryInterface(aEvent));
|
||||
if (aEvent) {
|
||||
if (privEvt) {
|
||||
nsCOMPtr<nsIDOMEventTarget> eventTarget(do_QueryInterface(aTarget));
|
||||
privEvt->SetTarget(eventTarget);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче