mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
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:
parent
40d01075ce
commit
08ed524d2d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user