diff --git a/xpfe/browser/resources/content/navigator.js b/xpfe/browser/resources/content/navigator.js index 775d8605013a..f721ba8275fd 100644 --- a/xpfe/browser/resources/content/navigator.js +++ b/xpfe/browser/resources/content/navigator.js @@ -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 ); } }