Initialize nsKeyEvent::mNativeKeyEvent to prevent crashes on multi-process (bug 906237, r=smichaud).

This commit is contained in:
David Anderson 2013-08-19 11:33:27 -07:00
Родитель bb87caf4be
Коммит 6bdc3734f9
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

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