Bug 292319, Set trust for XForms events. r=doron+aaronr, a=mkaply, NPOTB

git-svn-id: svn://10.0.0.236/trunk@173003 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2005-05-03 19:39:38 +00:00
parent 29e137c400
commit 49b97006a5
14 changed files with 135 additions and 32 deletions

View File

@@ -78,8 +78,7 @@ NS_IMETHODIMP nsXFormsActionModuleBase::OnDestroyed()
NS_IMETHODIMP
nsXFormsActionModuleBase::HandleEvent(nsIDOMEvent* aEvent)
{
if (!aEvent)
return NS_ERROR_INVALID_ARG;
return HandleAction(aEvent, nsnull);
return nsXFormsUtils::EventHandlingAllowed(aEvent, mElement) ?
HandleAction(aEvent, nsnull) : NS_OK;
}