mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
Don't throw an uncaught exception on cancel. Bug 91056, patch by
law@netscape.com, r=bzbarsky, sr=jag, a=asa
This commit is contained in:
parent
e263f7d7f4
commit
fdb372df0f
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user