mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Initialize nsKeyEvent::mNativeKeyEvent to prevent crashes on multi-process (bug 906237, r=smichaud).
This commit is contained in:
parent
bb87caf4be
commit
6bdc3734f9
@ -273,9 +273,10 @@ struct ParamTraits<nsKeyEvent>
|
||||
ReadParam(aMsg, aIter, &aResult->keyCode) &&
|
||||
ReadParam(aMsg, aIter, &aResult->charCode) &&
|
||||
ReadParam(aMsg, aIter, &aResult->isChar) &&
|
||||
ReadParam(aMsg, aIter, &aResult->location)) {
|
||||
aResult->mKeyNameIndex =
|
||||
static_cast<mozilla::widget::KeyNameIndex>(keyNameIndex);
|
||||
ReadParam(aMsg, aIter, &aResult->location))
|
||||
{
|
||||
aResult->mKeyNameIndex = static_cast<mozilla::widget::KeyNameIndex>(keyNameIndex);
|
||||
aResult->mNativeKeyEvent = NULL;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user