From dc1fb2ed19cb58fcdd2a7ad45b5ef8b689cdd668 Mon Sep 17 00:00:00 2001 From: "ben%bengoodger.com" Date: Wed, 6 Aug 2003 20:40:35 +0000 Subject: [PATCH] Add comment git-svn-id: svn://10.0.0.236/trunk@145676 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/components/downloads/content/nsHelperAppDlg.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/browser/components/downloads/content/nsHelperAppDlg.js b/mozilla/browser/components/downloads/content/nsHelperAppDlg.js index 32132678740..f3cd5be1919 100644 --- a/mozilla/browser/components/downloads/content/nsHelperAppDlg.js +++ b/mozilla/browser/components/downloads/content/nsHelperAppDlg.js @@ -135,6 +135,11 @@ nsUnknownContentTypeDialog.prototype = { // Since we're automatically downloading, we don't get the file picker's // logic to check for existing files, so we need to do that here. + // + // Note - this code is identical to that in + // browser/base/content/contentAreaUtils.js. + // If you are updating this code, update that code too! We can't share code + // here since this is called in a js component. while (result.exists()) { var parts = /.+-(\d+)(\..*)?$/.exec(result.leafName); if (parts) {