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:
Aaron Klotz 2013-03-19 16:23:37 +01:00
parent 151ef0e1b5
commit f9c33b4eee

View File

@ -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;