Fix for 20310; handle JS exception when Cancel is pressed; r=slamm@netscape.com

git-svn-id: svn://10.0.0.236/trunk@56958 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
law%netscape.com
2000-01-06 16:00:53 +00:00
parent 87196be41c
commit 58729a2049

View File

@@ -1035,8 +1035,12 @@ function RevealSearchPanel()
{
// Get filespecwithui component.
var fileSpec = createInstance( "component://netscape/filespecwithui", "nsIFileSpecWithUI" );
var url = fileSpec.chooseFile( "Open File" );
if ( url != "" ) {
var url = null;
try {
url = fileSpec.chooseFile( "Open File" );
} catch ( exception ) {
}
if ( url && url != "" ) {
openNewWindowWith( url );
}
}