From f452f17741a2d1efb25c04044709f997f491fe6f Mon Sep 17 00:00:00 2001 From: "ben%bengoodger.com" Date: Sun, 25 Jul 2004 18:42:08 +0000 Subject: [PATCH] 252549 - Better Update Handling for identical versions, also fixes numerous software update glitches also add better checking for executable files into unknown content type handling dialog git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@159842 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/app/profile/firefox.js | 26 +- .../toolkit/content/widgets/stringbundle.xml | 16 +- .../mozapps/downloads/unknownContentType.dtd | 6 + .../en-US/chrome/mozapps/update/update.dtd | 8 + .../chrome/mozapps/update/update.properties | 5 + .../downloads/content/unknownContentType.xul | 11 + .../downloads/src/nsHelperAppDlg.js.in | 46 +- .../mozapps/extensions/content/extensions.js | 2 +- .../extensions/public/nsIExtensionManager.idl | 11 +- .../mozapps/extensions/service/Extension.java | 79 -- .../extensions/service/UpdateItem.java | 67 +- .../extensions/service/VersionCheck.java | 140 ++- .../extensions/src/nsExtensionManager.js.in | 1008 ++++++++++++----- .../toolkit/mozapps/update/content/errors.xul | 9 +- .../toolkit/mozapps/update/content/update.js | 212 +++- .../toolkit/mozapps/update/content/update.xul | 25 +- .../mozapps/update/content/updates.xml | 10 +- .../update/public/nsIUpdateService.idl | 6 +- .../update/src/nsBackgroundUpdateService.js | 193 +++- .../toolkit/themes/winstripe/global/jar.mn | 1 + .../winstripe/mozapps/update/update.css | 16 + 21 files changed, 1307 insertions(+), 590 deletions(-) delete mode 100644 mozilla/toolkit/mozapps/extensions/service/Extension.java diff --git a/mozilla/browser/app/profile/firefox.js b/mozilla/browser/app/profile/firefox.js index 5094945e5cc..3f6c95cc059 100644 --- a/mozilla/browser/app/profile/firefox.js +++ b/mozilla/browser/app/profile/firefox.js @@ -71,18 +71,32 @@ pref("update.extensions.enabled", true); pref("update.extensions.wsdl", "chrome://mozapps/locale/extensions/extensions.properties"); pref("extensions.getMoreExtensionsURL", "chrome://mozapps/locale/extensions/extensions.properties"); pref("extensions.getMoreThemesURL", "chrome://mozapps/locale/extensions/extensions.properties"); -// Automatically download and install updates to themes and extensions. -pref("update.extensions.autoUpdate", false); -pref("update.interval", 86400000); // every 24 hrs -pref("update.lastUpdateDate", 0); // UTC offset when last update was performed. -pref("update.showSlidingNotification", true); // windows-only slide-up taskbar notification +pref("update.extensions.autoUpdate", false); // Automatically download and install + // updates to themes and extensions. + // Does nothing at present. +pref("update.extensions.interval", 604800000); // Check for updates to Extensions and + // Themes every week +pref("update.extensions.lastUpdateDate", 0); // UTC offset when last Extension/Theme + // update was performed. +pref("update.extensions.severity.threshold", 5);// The number of pending Extension/Theme + // updates you can have before the update + // notifier goes from low->medium severity. +pref("update.app.interval", 86400000); // Check for updates to Firefox every day +pref("update.app.lastUpdateDate", 0); // UTC offset when last App update was + // performed. +pref("update.interval", 3600000); // Check each of the above intervals + // every 60 mins +pref("update.showSlidingNotification", true); // Windows-only slide-up taskbar + // notification. // These prefs relate to the number and severity of updates available. This is a // cache that the browser notification mechanism uses to determine if it should show // status bar UI if updates are detected and the app is shut down before installing // them. -// 0 = low (extension/theme updates), 1 = medium (app minor version), 2 = high (major version) +// 0 = low (extension/theme updates), +// 1 = medium (numerous extension/theme updates), +// 2 = high (new version of Firefox/Security patch) pref("update.severity", 0); // The number of extension/theme/etc updates available pref("update.extensions.count", 0); diff --git a/mozilla/toolkit/content/widgets/stringbundle.xml b/mozilla/toolkit/content/widgets/stringbundle.xml index 0429c2f7a8a..b90107380df 100644 --- a/mozilla/toolkit/content/widgets/stringbundle.xml +++ b/mozilla/toolkit/content/widgets/stringbundle.xml @@ -13,7 +13,13 @@ @@ -23,7 +29,13 @@ diff --git a/mozilla/toolkit/locales/en-US/chrome/mozapps/downloads/unknownContentType.dtd b/mozilla/toolkit/locales/en-US/chrome/mozapps/downloads/unknownContentType.dtd index 819f683802f..c69e23a95da 100755 --- a/mozilla/toolkit/locales/en-US/chrome/mozapps/downloads/unknownContentType.dtd +++ b/mozilla/toolkit/locales/en-US/chrome/mozapps/downloads/unknownContentType.dtd @@ -55,3 +55,9 @@ + + + + + + diff --git a/mozilla/toolkit/locales/en-US/chrome/mozapps/update/update.dtd b/mozilla/toolkit/locales/en-US/chrome/mozapps/update/update.dtd index 3b7b7b25a73..a81d9ff578d 100644 --- a/mozilla/toolkit/locales/en-US/chrome/mozapps/update/update.dtd +++ b/mozilla/toolkit/locales/en-US/chrome/mozapps/update/update.dtd @@ -10,6 +10,11 @@ + + + + + @@ -64,3 +69,6 @@ + + + diff --git a/mozilla/toolkit/locales/en-US/chrome/mozapps/update/update.properties b/mozilla/toolkit/locales/en-US/chrome/mozapps/update/update.properties index c42f0f0ebc7..b148691ffc5 100644 --- a/mozilla/toolkit/locales/en-US/chrome/mozapps/update/update.properties +++ b/mozilla/toolkit/locales/en-US/chrome/mozapps/update/update.properties @@ -5,12 +5,15 @@ mismatchDontCheckAccesskey=D installButtonText=Install Now installButtonTextAccesskey=I nextButtonText=Next > +nextButtonTextAccesskey=N cancelButtonText=Cancel +cancelButtonTextAccesskey=C update.app.url=http://update.mozilla.org/update.rdf updatesAvailableTitle=New Updates Available updatesAvailableText=Click Here to View +checkingPrefix=Checking for Updates to %S ... downloadingPrefix=Downloading: %S installingPrefix=Installing: %S closeButton=Close @@ -19,6 +22,8 @@ installErrorDescription=The following components could not be installed due to e checkingErrorDescription=%S could not check for updates to the following components (either the update server(s) did not respond, or the update service(s) were not found). installErrorItemFormat=%S (%S) +versionUpdateComplete=Version Compatibility Update Complete + updatesAvailableTooltip-0=Update(s) Available updatesAvailableTooltip-1=Update(s) Available updatesAvailableTooltip-2=Critical Update(s) Available diff --git a/mozilla/toolkit/mozapps/downloads/content/unknownContentType.xul b/mozilla/toolkit/mozapps/downloads/content/unknownContentType.xul index 559c6cba763..9a946e38586 100755 --- a/mozilla/toolkit/mozapps/downloads/content/unknownContentType.xul +++ b/mozilla/toolkit/mozapps/downloads/content/unknownContentType.xul @@ -85,6 +85,17 @@ + + + +