mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 852164: Adds an addiitonal check to ensure that Plugin Hang UI user response doesn't race past a cancellation. r=bsmedberg
--HG-- extra : rebase_source : c626664d64183a00a9163202eaaa221c4daee260
This commit is contained in:
parent
151ef0e1b5
commit
f9c33b4eee
@ -297,6 +297,10 @@ PluginHangUIParent::SendCancel()
|
||||
bool
|
||||
PluginHangUIParent::RecvUserResponse(const unsigned int& aResponse)
|
||||
{
|
||||
if (!mIsShowing && !(aResponse & HANGUI_USER_RESPONSE_CANCEL)) {
|
||||
// Don't process a user response if a cancellation is already pending
|
||||
return true;
|
||||
}
|
||||
mLastUserResponse = aResponse;
|
||||
mResponseTicks = GetTickCount();
|
||||
mIsShowing = false;
|
||||
|
Loading…
Reference in New Issue
Block a user