From ce825ee68c1e8ba91e7cf3d88b890c7c2bb70fd8 Mon Sep 17 00:00:00 2001 From: "dtownsend@oxymoronical.com" Date: Thu, 6 Mar 2008 17:59:42 -0800 Subject: [PATCH] Bug 361911: Unable to install updates on startup after dismissing notifications. r=robstrong --- toolkit/mozapps/extensions/content/extensions.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/toolkit/mozapps/extensions/content/extensions.js b/toolkit/mozapps/extensions/content/extensions.js index 72184f86070..74cda93372a 100644 --- a/toolkit/mozapps/extensions/content/extensions.js +++ b/toolkit/mozapps/extensions/content/extensions.js @@ -2140,8 +2140,11 @@ function installUpdatesAll() { if (!isXPInstallEnabled()) return; - if (gUpdatesOnly) - document.getElementById("addonsMsg").removeCurrentNotification(); + if (gUpdatesOnly) { + var notifications = document.getElementById("addonsMsg"); + if (notifications.currentNotification) + notifications.removeCurrentNotification(); + } var items = []; var children = gExtensionsView.children;