зеркало из https://github.com/mozilla/gecko-dev.git
When a file has already been selected, correctly prefill the filepicker with that file. Bug 374013, r+sr=sicking, a=dbaron
This commit is contained in:
Родитель
d5c8f26811
Коммит
34769343d2
|
@ -554,8 +554,9 @@ nsFileControlFrame::GetFormProperty(nsIAtom* aName, nsAString& aValue) const
|
|||
"If we have a cached state, we better have no mTextFrame");
|
||||
if (mCachedState) {
|
||||
aValue.Assign(*mCachedState);
|
||||
} else if (mTextContent) {
|
||||
nsCOMPtr<nsIFileControlElement> fileControl = do_QueryInterface(mTextContent);
|
||||
} else {
|
||||
nsCOMPtr<nsIFileControlElement> fileControl =
|
||||
do_QueryInterface(mContent);
|
||||
if (fileControl) {
|
||||
fileControl->GetFileName(aValue);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче