Bug 378830 - UI operation delay when page contains flash images with high refresh rate

p=Wang Xianzhu <phnixwxz1@yahoo.com>
r=emaijala, sr=roc
This commit is contained in:
asqueella%gmail.com 2007-07-14 21:52:02 +00:00
Родитель 5e53695a66
Коммит c3ee6c95c4
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -135,10 +135,12 @@ nsAppShell::ProcessNextNativeEvent(PRBool mayWait)
do {
MSG msg;
// Give priority to system messages (in particular keyboard, mouse, timer,
// and paint messages).
// Give priority to system messages (in particular keyboard, mouse, and
// non-user messages).
if (PeekKeyAndIMEMessage(&msg, NULL) ||
::PeekMessageW(&msg, NULL, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE) ||
// See bug 378830.
::PeekMessageW(&msg, NULL, 0, WM_USER - 1, PM_REMOVE) ||
::PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) {
gotMessage = PR_TRUE;
if (msg.message == WM_QUIT) {