mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
Bug 1132305 - Ensure that BHR knows when thread activity has resumed in nextEventMatchingMask. r=smichaud
This commit is contained in:
parent
369e03f0d4
commit
5d33b28500
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user