mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1713023 - Ensure we always call ExitUserInputProcessing. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116053
This commit is contained in:
parent
7b47184b2c
commit
b126d382e1
@ -1023,6 +1023,11 @@ nsresult EventDispatcher::Dispatch(nsISupports* aTarget,
|
||||
refreshDriver->EnterUserInputProcessing();
|
||||
}
|
||||
}
|
||||
auto cleanup = MakeScopeExit([&] {
|
||||
if (refreshDriver) {
|
||||
refreshDriver->ExitUserInputProcessing();
|
||||
}
|
||||
});
|
||||
|
||||
clearTargets = ShouldClearTargets(aEvent);
|
||||
|
||||
@ -1138,10 +1143,6 @@ nsresult EventDispatcher::Dispatch(nsISupports* aTarget,
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (refreshDriver) {
|
||||
driver->ExitUserInputProcessing();
|
||||
}
|
||||
}
|
||||
|
||||
preVisitor.mEventStatus = postVisitor.mEventStatus;
|
||||
|
Loading…
Reference in New Issue
Block a user