Bug 1499222 - fix typo of node.listChild in extensions.js, fixing sorting of addons in addon manager. r=kmag
authoraceman <acelists@atlas.sk>
Mon, 15 Oct 2018 15:39:00 +0300
changeset 489947 a230ab0deaba1e1940b141c74278eb563b48e0cf
parent 489946 12a1714386d4428690a48ac0d0856fee1aa9f31e
child 489948 ce783284cca7bb33684bf6fbf197387afcd2c3b4
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerskmag
bugs1499222
milestone64.0a1
Bug 1499222 - fix typo of node.listChild in extensions.js, fixing sorting of addons in addon manager. r=kmag
toolkit/mozapps/extensions/content/extensions.js
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -1636,18 +1636,18 @@ function sortElements(aElements, aSortBy
 
   });
 }
 
 function sortList(aList, aSortBy, aAscending) {
   var elements = Array.slice(aList.childNodes, 0);
   sortElements(elements, [aSortBy], aAscending);
 
-  while (aList.listChild)
-    aList.removeChild(aList.lastChild);
+  while (aList.lastChild)
+    aList.lastChild.remove();
 
   for (let element of elements)
     aList.appendChild(element);
 }
 
 async function getAddonsAndInstalls(aType, aCallback) {
   let addons = null, installs = null;
   let types = (aType != null) ? [aType] : null;