Bug 1478652 - removeTabs passes '{animate: true}' instead of '{animation: true}' options object to removeTab in tabbrowser.js file. r?jaws draft fix_bogus_animate_param
authorAbdoulaye O. Ly <ablayelyfondou@gmail.com>
Sat, 28 Jul 2018 04:49:02 +0000
branchfix_bogus_animate_param
changeset 823744 808998406738dbf44f580f2e9b76f988be4943ac
parent 821214 6fb4a61f6c1f617045fb2ea9618b226cfb3ce8d1
push id117776
push userbmo:ablayelyfondou@gmail.com
push dateSat, 28 Jul 2018 04:53:28 +0000
reviewersjaws
bugs1478652
milestone63.0a1
Bug 1478652 - removeTabs passes '{animate: true}' instead of '{animation: true}' options object to removeTab in tabbrowser.js file. r?jaws MozReview-Commit-ID: 1yzAITw6j1q
browser/base/content/tabbrowser.js
--- a/browser/base/content/tabbrowser.js
+++ b/browser/base/content/tabbrowser.js
@@ -2572,17 +2572,17 @@ window._gBrowser = {
     }
 
     this.removeTabs(selectedTabs);
   },
 
   removeTabs(tabs) {
     let tabsWithBeforeUnload = [];
     let lastToClose;
-    let aParams = {animation: true};
+    let aParams = { animate: true };
     for (let tab of tabs) {
       if (tab.selected)
         lastToClose = tab;
       else if (this._hasBeforeUnload(tab))
         tabsWithBeforeUnload.push(tab);
       else
         this.removeTab(tab, aParams);
     }