When a file has already been selected, correctly prefill the filepicker with

that file.  Bug 374013, r+sr=sicking, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@232058 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2007-08-14 18:42:10 +00:00
parent 1da14977fa
commit 890ca46349

View File

@@ -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);
}