зеркало из https://github.com/mozilla/pjs.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:
Родитель
4aaac4abe5
Коммит
287202382b
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче