From fdb372df0f595ffec239f965bfc831a61d2af4b2 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sat, 2 Mar 2002 01:02:16 +0000 Subject: [PATCH] Don't throw an uncaught exception on cancel. Bug 91056, patch by law@netscape.com, r=bzbarsky, sr=jag, a=asa --- embedding/components/ui/helperAppDlg/nsHelperAppDlg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js b/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js index 72ac3c7548f9..9594a608b655 100644 --- a/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js +++ b/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js @@ -159,7 +159,8 @@ nsHelperAppDialog.prototype = { var dlgResult = picker.show(); if ( dlgResult == nsIFilePicker.returnCancel ) { - throw Components.results.NS_ERROR_FAILURE; + // Null result means user cancelled. + return null; }