зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1017595 - Links from external applications sometimes fail to open when Firefox is hidden. r=spohl
This commit is contained in:
Родитель
e2e6d53153
Коммит
e46726de80
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче