Bug 1544562 - Call onUnload when about:preferences is closed r=rstrong
☠☠ backed out by c29272019599 ☠ ☠
authorKirk Steuber <ksteuber@mozilla.com>
Mon, 15 Apr 2019 21:23:04 +0000
changeset 469576 252732b54408
parent 469575 1eec26ba4a75
child 469577 095d253f97be
push id35874
push userccoroiu@mozilla.com
push dateTue, 16 Apr 2019 04:04:58 +0000
treeherdermozilla-central@be3f40425b52 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrstrong
bugs1544562
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1544562 - Call onUnload when about:preferences is closed r=rstrong Differential Revision: https://phabricator.services.mozilla.com/D27591
browser/components/preferences/in-content/main.js
--- a/browser/components/preferences/in-content/main.js
+++ b/browser/components/preferences/in-content/main.js
@@ -1431,16 +1431,19 @@ var gMainPane = {
   },
 
 
   // EventListener
 
   handleEvent(aEvent) {
     if (aEvent.type == "unload") {
       this.destroy();
+      if (AppConstants.MOZ_UPDATER) {
+        onUnload();
+      }
     }
   },
 
 
   // Composed Model Construction
 
   _loadData() {
     this._loadInternalHandlers();