Bug 1201106 - Make sure that HTMLInputElement.files is always null if the 'directory' attribute is set. r=baku

This commit is contained in:
Jonathan Watt 2015-08-21 13:38:25 +01:00
parent bc9a71944a
commit 5101569e41

View File

@ -2481,6 +2481,10 @@ HTMLInputElement::GetFiles()
return nullptr;
}
if (HasAttr(kNameSpaceID_None, nsGkAtoms::directory)) {
return nullptr;
}
if (!mFileList) {
mFileList = new FileList(static_cast<nsIContent*>(this));
UpdateFileList();