Add comment

git-svn-id: svn://10.0.0.236/trunk@145676 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ben%bengoodger.com
2003-08-06 20:40:35 +00:00
parent 22fe3cca04
commit dc1fb2ed19

View File

@@ -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) {