Bug 1008723 Even while a context menu is open for an bookmark item on a popup, bookmark menus shouldn't be closed by a right click on one of them r=enndeakin

This commit is contained in:
Masayuki Nakano 2014-05-13 02:05:56 +09:00
Родитель 42a3125c8f
Коммит 296c2251d6
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -7293,6 +7293,13 @@ nsWindow::DealWithPopups(HWND aWnd, UINT aMessage,
return false;
}
}
} else if (LOWORD(aWParam) == WA_CLICKACTIVE) {
// If the WM_ACTIVATE message is caused by a click in a popup,
// we should not rollup any popups.
if (EventIsInsideWindow(popupWindow) ||
!GetPopupsToRollup(rollupListener, &popupsToRollup)) {
return false;
}
}
break;