From e8fc2a2bb5ff80bd0785457f4702ec991a311898 Mon Sep 17 00:00:00 2001 From: "noririty%jcom.home.ne.jp" Date: Thu, 21 Aug 2003 14:56:42 +0000 Subject: [PATCH] Fix 172735 - fix JS error --- browser/components/downloads/content/downloadPanel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/components/downloads/content/downloadPanel.js b/browser/components/downloads/content/downloadPanel.js index f4ace75a9294..35c39aa41f93 100644 --- a/browser/components/downloads/content/downloadPanel.js +++ b/browser/components/downloads/content/downloadPanel.js @@ -75,8 +75,10 @@ var downloadDNDObserver = { var split = aXferData.data.split("\n"); var url = split[0]; - var name = split[1]; - saveURL(url, name, null, true, true); + if (url != split) { //do nothing, not a valid URL + var name = split[1]; + saveURL(url, name, null, true, true); + } }, _flavourSet: null, getSupportedFlavours: function ()