mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1212658 - Remove needless IsCallerChrome check in nsMenuPopupFrame. r=bz
This commit is contained in:
parent
3701af8384
commit
660e5be959
@ -1845,8 +1845,7 @@ nsMenuPopupFrame::ChangeMenuItem(nsMenuFrame* aMenuItem,
|
||||
// Fire a command event as the new item, but we don't want to close
|
||||
// the menu, blink it, or update any other state of the menuitem. The
|
||||
// command event will cause the item to be selected.
|
||||
nsContentUtils::DispatchXULCommand(aMenuItem->GetContent(),
|
||||
nsContentUtils::IsCallerChrome(),
|
||||
nsContentUtils::DispatchXULCommand(aMenuItem->GetContent(), /* aTrusted = */ true,
|
||||
nullptr, PresContext()->PresShell(),
|
||||
false, false, false, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user