Bug 1557472 - Change about:support to open the update history by using the chrome URI instead of using nsIUpdatePrompt. r=darktrojan
authorRobert Strong <robert.strong.bugs@gmail.com>
Thu, 06 Jun 2019 13:08:00 +0200
changeset 35800 7ef46c2299364110c9370991d8c8176945c4c5f3
parent 35799 63d774f75722cf748d14da2e4fc1feb41c62c004
child 35801 e24c0dd786996801f0a36f4787043aa2b18b30c3
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersdarktrojan
bugs1557472
Bug 1557472 - Change about:support to open the update history by using the chrome URI instead of using nsIUpdatePrompt. r=darktrojan
mail/components/about-support/content/aboutSupport.js
--- a/mail/components/about-support/content/aboutSupport.js
+++ b/mail/components/about-support/content/aboutSupport.js
@@ -1283,18 +1283,20 @@ function onShowPrivateDataChange(aCheckb
 
 /**
  * Set up event listeners for buttons.
  */
 function setupEventListeners() {
   let button = $("show-update-history-button");
   if (button) {
     button.addEventListener("click", function(event) {
-      var prompter = Cc["@mozilla.org/updates/update-prompt;1"].createInstance(Ci.nsIUpdatePrompt);
-      prompter.showUpdateHistory(window);
+      let uri = "chrome://mozapps/content/update/history.xul";
+      let features = "chrome,centerscreen,resizable=no,titlebar,toolbar=no," +
+                     "dialog=yes,modal";
+      Services.ww.openWindow(window, uri, "Update:History", features, null);
     });
   }
 /* not used by TB
   button = $("reset-box-button");
   if (button) {
     button.addEventListener("click", function(event) {
       ResetProfile.openConfirmationDialog(window);
     });