From 163b96b5b3b7654b12d995c4057df4c265b6e434 Mon Sep 17 00:00:00 2001 From: Kirk Steuber Date: Mon, 15 Apr 2019 21:23:04 +0000 Subject: [PATCH] Bug 1544562 - Call onUnload when about:preferences is closed r=rstrong Differential Revision: https://phabricator.services.mozilla.com/D27591 --HG-- extra : moz-landing-system : lando --- browser/components/preferences/in-content/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/components/preferences/in-content/main.js b/browser/components/preferences/in-content/main.js index 47b3b324dcca..222a73c7ce72 100644 --- a/browser/components/preferences/in-content/main.js +++ b/browser/components/preferences/in-content/main.js @@ -1436,6 +1436,9 @@ var gMainPane = { handleEvent(aEvent) { if (aEvent.type == "unload") { this.destroy(); + if (AppConstants.MOZ_UPDATER) { + onUnload(); + } } },