mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1201106 - Make sure that HTMLInputElement.files is always null if the 'directory' attribute is set. r=baku
This commit is contained in:
parent
bc9a71944a
commit
5101569e41
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user