зеркало из https://github.com/mozilla/gecko-dev.git
Initialize nsKeyEvent::mNativeKeyEvent to prevent crashes on multi-process (bug 906237, r=smichaud).
This commit is contained in:
Родитель
bb87caf4be
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче