mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Propagate trusted flag to synthesized events. b=265774 r+sr=bzbarsky a=asa
This commit is contained in:
parent
62bd820c74
commit
3403b8df5f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user