Bug 1557452 - Change about:support to open the update history by using the chrome uri instead of using nsIUpdatePrompt. r=bytesized

This is in preparation of removing nsIUpdatePrompt

Differential Revision: https://phabricator.services.mozilla.com/D34015

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Robert Strong 2019-06-06 20:05:03 +00:00
parent 40d01075ce
commit 08ed524d2d

View File

@ -1227,8 +1227,10 @@ 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);
});
}
button = $("reset-box-button");