From 9749e376cfc4de3e1bc29246a0ada6e38786e1b0 Mon Sep 17 00:00:00 2001 From: Robert Strong Date: Fri, 5 Sep 2008 09:57:23 -0700 Subject: [PATCH] Bug 353177 - Details link has ugly focus while downloading an update. r=dietrich --- toolkit/mozapps/update/content/updates.js | 4 ++++ toolkit/mozapps/update/content/updates.xul | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/toolkit/mozapps/update/content/updates.js b/toolkit/mozapps/update/content/updates.js index bca30ddebf13..f5b466c16ed6 100755 --- a/toolkit/mozapps/update/content/updates.js +++ b/toolkit/mozapps/update/content/updates.js @@ -1170,6 +1170,10 @@ var gDownloadingPage = { this._pauseButton = document.getElementById("pauseButton"); this._label_downloadStatus = this._downloadStatus.textContent; + // move focus to the pause/resume button and then disable it (bug #353177) + this._pauseButton.focus(); + this._pauseButton.disabled = true; + var updates = Components.classes["@mozilla.org/updates/update-service;1"]. getService(Components.interfaces.nsIApplicationUpdateService); diff --git a/toolkit/mozapps/update/content/updates.xul b/toolkit/mozapps/update/content/updates.xul index f7dfaf9e1c13..9a49adebc799 100755 --- a/toolkit/mozapps/update/content/updates.xul +++ b/toolkit/mozapps/update/content/updates.xul @@ -173,7 +173,7 @@ &connecting.label;