Bug 1017595 - Links from external applications sometimes fail to open when Firefox is hidden. r=spohl

This commit is contained in:
Steven Michaud 2014-10-31 17:14:44 -05:00
Родитель e2e6d53153
Коммит e46726de80
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -563,14 +563,15 @@ nsAppShell::ProcessNextNativeEvent(bool aMayWait)
UInt32 eventKind = GetEventKind(currentEvent);
UInt32 eventClass = GetEventClass(currentEvent);
bool osCocoaEvent =
((eventClass == 'appl') ||
((eventClass == 'appl') || (eventClass == kEventClassAppleEvent) ||
((eventClass == 'cgs ') && (eventKind != NSApplicationDefined)));
// If attrs is kEventAttributeUserEvent or kEventAttributeMonitored
// (i.e. a user input event), we shouldn't process it here while
// aMayWait is false. Likewise if currentEvent will eventually be
// turned into an OS-defined Cocoa event. Doing otherwise risks
// doing too much work here, and preventing the event from being
// properly processed as a Cocoa event.
// turned into an OS-defined Cocoa event, or otherwise needs AppKit
// processing. Doing otherwise risks doing too much work here, and
// preventing the event from being properly processed by the AppKit
// framework.
if ((attrs != kEventAttributeNone) || osCocoaEvent) {
// Since we can't process the next event here (while aMayWait is false),
// we want moreEvents to be false on return.