Fixed bug 52526, the cause was that image load event was bubbling even though the specs say it should not. Previously we were not even sending the load event on image load. I also fixed bug 50478 by fixing the logic in GetBubbles and GetCancelable of the DOMEvent. This helps in testing the first bug. I also fixed several cases where we had wrong combination of event class and event struct type. a=waterson, r=joki,rods.
git-svn-id: svn://10.0.0.236/trunk@79545 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -332,14 +332,14 @@ nsHTMLButtonControlFrame::MouseClicked(nsIPresContext* aPresContext)
|
||||
if (presShell) {
|
||||
if (IsReset(type) == PR_TRUE) {
|
||||
event.message = NS_FORM_RESET;
|
||||
presShell->HandleEventWithTarget(&event, nsnull, formContent, &status);
|
||||
presShell->HandleEventWithTarget(&event, nsnull, formContent, NS_EVENT_FLAG_INIT, &status);
|
||||
if (nsEventStatus_eConsumeNoDefault != status && mFormFrame) {
|
||||
mFormFrame->OnReset(aPresContext);
|
||||
}
|
||||
}
|
||||
else if (IsSubmit(type) == PR_TRUE) {
|
||||
event.message = NS_FORM_SUBMIT;
|
||||
presShell->HandleEventWithTarget(&event, nsnull, formContent, &status);
|
||||
presShell->HandleEventWithTarget(&event, nsnull, formContent, NS_EVENT_FLAG_INIT, &status);
|
||||
if (nsEventStatus_eConsumeNoDefault != status && mFormFrame) {
|
||||
mFormFrame->OnSubmit(aPresContext, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user