Bug 1211704 - Count key and IME events as UI events; r=esawin
GeckoEvent.KEY_EVENT and GeckoEvent.IME_EVENT used to count as UI events for the hang monitor. We should count the new native calls as native events too through this patch.
This commit is contained in:
@@ -383,7 +383,7 @@ public:
|
||||
void Run() override;
|
||||
void PostTo(mozilla::LinkedList<Event>& queue) override;
|
||||
|
||||
mozilla::HangMonitor::ActivityType ActivityType() const
|
||||
Event::Type ActivityType() const override
|
||||
{
|
||||
return ae->IsInputEvent() ? mozilla::HangMonitor::kUIActivity
|
||||
: mozilla::HangMonitor::kGeneralActivity;
|
||||
|
||||
Reference in New Issue
Block a user