From d15012168dcf10d9a1493c902df4fd2215cb5cb3 Mon Sep 17 00:00:00 2001 From: "dhg@chromium.org" Date: Fri, 14 May 2010 15:40:42 +0000 Subject: Chaning filebrowse so when the user downloads a dangerous URL, it doesn't show the updates about the download until the user presses allow. (much like the standard UI) BUG=chromium-os:2773 TEST=none Review URL: http://codereview.chromium.org/2130001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47274 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/filebrowse.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/resources') diff --git a/chrome/browser/resources/filebrowse.html b/chrome/browser/resources/filebrowse.html index 48ed2cb..9011ca5 100644 --- a/chrome/browser/resources/filebrowse.html +++ b/chrome/browser/resources/filebrowse.html @@ -1032,6 +1032,7 @@ function downloadUpdated(results) { no.className = 'link'; pauseDiv.appendChild(yes); pauseDiv.appendChild(no); + progressDiv.textContent = ''; } else if (results[x].state == "PAUSED") { pauseDiv.textContent = kResumeDownload; } else if (results[x].state == "IN_PROGRESS") { @@ -1040,8 +1041,7 @@ function downloadUpdated(results) { pauseDiv.id = 'downloaditem' + results[x].id; element.appendChild(pauseDiv); } - if (results[x].state != "DANGEROUS" || - results[x].percent < 100) { + if (results[x].percent < 100) { progressDiv.textContent = results[x].progress_status_text; } -- cgit v1.1