зеркало из https://github.com/mozilla/gecko-dev.git
Work around another unitialized-memory-read bug where sometimes (not sure why!) aEventStatus would not get set ever
This commit is contained in:
Родитель
6dceba716f
Коммит
13e54f058a
|
@ -1154,6 +1154,7 @@ nsGenericHTMLElement::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
PRUint32 aFlags,
|
||||
nsEventStatus& aEventStatus)
|
||||
{
|
||||
aEventStatus = nsEventStatus_eIgnore;
|
||||
nsresult ret = NS_OK;
|
||||
|
||||
nsIDOMEvent* domEvent = nsnull;
|
||||
|
@ -1174,7 +1175,7 @@ nsGenericHTMLElement::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
}
|
||||
|
||||
//Bubbling stage
|
||||
if (DOM_EVENT_CAPTURE != aFlags && mParent != nsnull) {
|
||||
if ((DOM_EVENT_CAPTURE != aFlags) && (mParent != nsnull)) {
|
||||
ret = mParent->HandleDOMEvent(aPresContext, aEvent, aDOMEvent,
|
||||
DOM_EVENT_BUBBLE, aEventStatus);
|
||||
}
|
||||
|
|
|
@ -1154,6 +1154,7 @@ nsGenericHTMLElement::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
PRUint32 aFlags,
|
||||
nsEventStatus& aEventStatus)
|
||||
{
|
||||
aEventStatus = nsEventStatus_eIgnore;
|
||||
nsresult ret = NS_OK;
|
||||
|
||||
nsIDOMEvent* domEvent = nsnull;
|
||||
|
@ -1174,7 +1175,7 @@ nsGenericHTMLElement::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
}
|
||||
|
||||
//Bubbling stage
|
||||
if (DOM_EVENT_CAPTURE != aFlags && mParent != nsnull) {
|
||||
if ((DOM_EVENT_CAPTURE != aFlags) && (mParent != nsnull)) {
|
||||
ret = mParent->HandleDOMEvent(aPresContext, aEvent, aDOMEvent,
|
||||
DOM_EVENT_BUBBLE, aEventStatus);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче