зеркало из https://github.com/mozilla/gecko-dev.git
Bug 880042 - file[multiple] form field nsIFilePicker crash if overriding component has not implemented a domfiles getter. r=smaug
This commit is contained in:
Родитель
0ee383052d
Коммит
0224f70bde
|
@ -324,6 +324,10 @@ HTMLInputElement::nsFilePickerShownCallback::Done(int16_t aResult)
|
|||
nsresult rv = mFilePicker->GetDomfiles(getter_AddRefs(iter));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (!iter) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsISupports> tmp;
|
||||
bool prefSaved = false;
|
||||
bool loop = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче