Bug 1426122 - Fix extensions getting stuck in "Checking for updates" mode. r=aswan
authorMartin Koroknay <koroknay@gmail.com>
Mon, 04 Feb 2019 20:43:24 +0000 (2019-02-04)
changeset 456787 42eab2ed3806631a27acc96910a0e0bb24cdf7cf
parent 456786 b694994c7b3c6d4e8681494d7c05ab7c119cb971
child 456788 1759b7e69caffdfc7dbb78b3e315b7c5059861ad
push id35504
push usercsabou@mozilla.com
push dateTue, 05 Feb 2019 21:57:12 +0000 (2019-02-05)
treeherdermozilla-central@1e374e23c02f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaswan
bugs1426122
milestone67.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 1426122 - Fix extensions getting stuck in "Checking for updates" mode. r=aswan Fix extensions getting stuck in "Checking for updates" mode, caused by the lack of an "onUpdateAvailable" event handler on the addon-generic XBL binding. Differential Revision: https://phabricator.services.mozilla.com/D18177
toolkit/mozapps/extensions/content/extensions.xml
--- a/toolkit/mozapps/extensions/content/extensions.xml
+++ b/toolkit/mozapps/extensions/content/extensions.xml
@@ -1391,16 +1391,22 @@
         <body><![CDATA[
           if (aProperties.includes("appDisabled") ||
               aProperties.includes("signedState") ||
               aProperties.includes("userDisabled"))
             this._updateState();
         ]]></body>
       </method>
 
+      <method name="onUpdateAvailable">
+        <body><![CDATA[
+          this._showStatus("update-available");
+        ]]></body>
+      </method>
+
       <method name="onNoUpdateAvailable">
         <body><![CDATA[
           this._showStatus("none");
         ]]></body>
       </method>
 
       <method name="onCheckingUpdate">
         <body><![CDATA[