Bug 1132305 - Ensure that BHR knows when thread activity has resumed in nextEventMatchingMask. r=smichaud

This commit is contained in:
Aaron Klotz 2015-02-12 10:31:42 -07:00
parent 369e03f0d4
commit 5d33b28500

View File

@ -115,8 +115,12 @@ static bool gAppShellMethodsSwizzled = false;
if (expiration) {
mozilla::HangMonitor::Suspend();
}
return [super nextEventMatchingMask:mask
untilDate:expiration inMode:mode dequeue:flag];
NSEvent* nextEvent = [super nextEventMatchingMask:mask
untilDate:expiration inMode:mode dequeue:flag];
if (expiration) {
mozilla::HangMonitor::NotifyActivity();
}
return nextEvent;
}
@end