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:
heikki%netscape.com
2000-09-19 21:47:04 +00:00
parent 0d1da1648f
commit 82a70c8b59
20 changed files with 60 additions and 70 deletions

View File

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