aContent->GetAttribute( kNameSpaceID_None, kFileNameAtom, fileName );
nsCOMPtr<nsIAtom> atomFileName = nsDontQueryInterface<nsIAtom>( NS_NewAtom("filename") ); aContent->GetAttribute( kNameSpaceID_None, atomFileName, fileName );
nsFileDownloadDialog::OnOK( nsIContent *aContent ) {    // Show progress.    if ( mWebShell ) {        nsString fileName;        aContent->GetAttribute( kNameSpaceID_None, kFileNameAtom, fileName );        mFileName = fileName;        mMode = kProgress;        nsString progressXUL = "resource:/res/samples/downloadProgress.xul";        mWebShell->LoadURL( progressXUL );    }    // Open output file stream.    mOutput = new nsOutputFileStream( mFileName );}