From 2eb1cdae820c79009d353730b37080c900447509 Mon Sep 17 00:00:00 2001 From: Jared Wein Date: Thu, 14 Jul 2016 15:22:11 -0400 Subject: [PATCH] Bug 1286930 - Allow the About dialog to show the application update UI even if the separate Update Available window is shown. r=rstrong MozReview-Commit-ID: 1jUyLx4KsZG --HG-- extra : rebase_source : fe2e29b29fa50e21f3c426f51e2504b9095c4812 --- browser/base/content/aboutDialog-appUpdater.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/browser/base/content/aboutDialog-appUpdater.js b/browser/base/content/aboutDialog-appUpdater.js index 307fab8d9c95..21811390a5f0 100644 --- a/browser/base/content/aboutDialog-appUpdater.js +++ b/browser/base/content/aboutDialog-appUpdater.js @@ -28,9 +28,12 @@ function appUpdater() { this.updateDeck = document.getElementById("updateDeck"); - // Hide the update deck when there is already an update window open to avoid - // syncing issues between them. - if (Services.wm.getMostRecentWindow("Update:Wizard")) { + // Hide the update deck when the update window is already open and it's not + // already applied, to avoid syncing issues between them. Applied updates + // don't have any information to sync between the windows as they both just + // show the "Restart to continue"-type button. + if (Services.wm.getMostRecentWindow("Update:Wizard") && + !this.isApplied) { this.updateDeck.hidden = true; return; }