mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Fix for 20310; handle JS exception when Cancel is pressed; r=slamm@netscape.com
This commit is contained in:
parent
9c5b3edc9f
commit
16068a8e4e
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user