зеркало из https://github.com/mozilla/gecko-dev.git
fix the bug where form reset with textarea's would segfault. just cut-n-pasted one line from the text input element's reset method.
This commit is contained in:
Родитель
0e466f4023
Коммит
6625b23211
|
@ -2322,6 +2322,8 @@ textarea_reset(FEFormData *fed,
|
||||||
int16 charset = text_attr->charset;
|
int16 charset = text_attr->charset;
|
||||||
unsigned char *loc;
|
unsigned char *loc;
|
||||||
|
|
||||||
|
if (!default_text) default_text = "";
|
||||||
|
|
||||||
fe_forms_clean_text (fed->context, charset, default_text, False);
|
fe_forms_clean_text (fed->context, charset, default_text, False);
|
||||||
|
|
||||||
XtVaSetValues (ta_fed->text_widget, XmNcursorPosition, 0, 0);
|
XtVaSetValues (ta_fed->text_widget, XmNcursorPosition, 0, 0);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче