Bug 705154 - Hang monitor incorrectly killing the app on mac when the user is idle...
commit1ab024c7fb1c357e461da6bc0acc2fb82f441a2c
authorBenjamin Smedberg <benjamin@smedbergs.us>
Thu, 1 Dec 2011 17:50:04 +0000 (1 12:50 -0500)
committerBenjamin Smedberg <benjamin@smedbergs.us>
Thu, 1 Dec 2011 17:50:04 +0000 (1 12:50 -0500)
tree0c4156149f668f266c8364c7bf4c76c60b5f4e58
parent501c68b0e56e456b80d98649d03b5fcfcac44418
Bug 705154 - Hang monitor incorrectly killing the app on mac when the user is idle: unlike other platforms, the main loop on Mac doesn't call processNextEvent in a loop: instead it calls into [NSApplication run] and we check whether there are pending XPCOM events during processing. Suspend the hang monitor when we pause for incoming events by subclassing [NSApplication nextEventMatchingMask], r=smichaud

--HG--
extra : rebase_source : 753343ca11d3ce8b6801a5be8831621887fbe70b
widget/src/cocoa/nsAppShell.mm