Propagate trusted flag to synthesized events. b=265774 r+sr=bzbarsky a=asa

This commit is contained in:
dbaron%dbaron.org 2004-10-23 22:29:55 +00:00
parent 62bd820c74
commit 3403b8df5f

View File

@ -1516,6 +1516,8 @@ nsGenericHTMLElement::HandleDOMEventForAnchors(nsPresContext* aPresContext,
event.isControl = keyEvent->isControl;
event.isAlt = keyEvent->isAlt;
event.isMeta = keyEvent->isMeta;
event.internalAppFlags |=
aEvent->internalAppFlags & NS_APP_EVENT_FLAG_TRUSTED;
nsIPresShell *presShell = aPresContext->GetPresShell();
if (presShell) {