Bug 462658 Folder drop down in Bookmarks contextual dialog cannot be closed r=ere, sr=roc, a=beltzner

This commit is contained in:
Masayuki Nakano 2008-11-18 15:15:24 +09:00
Родитель d41f0a300d
Коммит fb8d4cfe90
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -7882,7 +7882,7 @@ nsWindow :: DealWithPopups ( HWND inWnd, UINT inMsg, WPARAM inWParam, LPARAM inL
inMsg == WM_MOUSEACTIVATE ||
inMsg == WM_ACTIVATEAPP ||
inMsg == WM_MENUSELECT ||
// Non-toplevel windows normally don't get WM_GETMINMAXINFO.
// Non-toplevel windows normally don't get WM_GETMINMAXINFO.
// Therefore if a non-toplevel window gets this message, we should ignore it.
(inMsg == WM_GETMINMAXINFO && !::GetParent(inWnd))
#endif
@ -7944,6 +7944,9 @@ nsWindow :: DealWithPopups ( HWND inWnd, UINT inMsg, WPARAM inWParam, LPARAM inL
else
#endif
if ( rollup ) {
// gRollupConsumeRollupEvent may be modified by
// nsIRollupListener::Rollup.
PRBool consumeRollupEvent = gRollupConsumeRollupEvent;
// only need to deal with the last rollup for left mouse down events.
gRollupListener->Rollup(inMsg == WM_LBUTTONDOWN ? &mLastRollup : nsnull);
@ -7956,7 +7959,7 @@ nsWindow :: DealWithPopups ( HWND inWnd, UINT inMsg, WPARAM inWParam, LPARAM inL
// false allows the event to be dispatched
//
// So if we are NOT supposed to be consuming events, let it go through
if (gRollupConsumeRollupEvent && inMsg != WM_RBUTTONDOWN) {
if (consumeRollupEvent && inMsg != WM_RBUTTONDOWN) {
*outResult = TRUE;
return TRUE;
}