mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +09:00
Bug 1730048, reorder the code in nsMenuFrame::PassMenuCommandEventToPopupManager a bit, r=mstange a=RyanVM
This commit is contained in:
parent
e4da2ce4e0
commit
6bc10cbc95
1 changed files with 3 additions and 1 deletions
|
|
@ -1273,7 +1273,9 @@ nsMenuFrame::PassMenuCommandEventToPopupManager()
|
|||
nsXULPopupManager* pm = nsXULPopupManager::GetInstance();
|
||||
nsMenuParent* menuParent = GetMenuParent();
|
||||
if (pm && menuParent && mDelayedMenuCommandEvent) {
|
||||
pm->ExecuteMenu(mContent, mDelayedMenuCommandEvent);
|
||||
nsCOMPtr<nsIContent> content = mContent;
|
||||
RefPtr<nsXULMenuCommandEvent> event = mDelayedMenuCommandEvent;
|
||||
pm->ExecuteMenu(content, event);
|
||||
}
|
||||
mDelayedMenuCommandEvent = nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue