[Pkg-mozext-commits] [tabmixplus] 97/147: Foolow up bug 1331081 - make the no-useless-parameters eslint rule report useless addEventListener false third parameter

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit d91a504cb8c1ab130a5dd5100edcd90d14efba95
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Jan 18 12:12:28 2017 +0200

    Foolow up bug 1331081 - make the no-useless-parameters eslint rule report useless addEventListener false third parameter
---
 chrome/content/click/click.js             | 32 +++++++++++++++----------------
 chrome/content/extensions/extensions.js   |  4 ++--
 chrome/content/extensions/sage.js         |  4 ++--
 chrome/content/flst/lasttab.js            |  2 +-
 chrome/content/minit/minit.js             | 18 ++++++++---------
 chrome/content/minit/tablib.js            |  2 +-
 chrome/content/overlay/newTab.js          |  4 ++--
 chrome/content/overlay/removeBlankTab.js  |  4 ++--
 chrome/content/places/places.js           |  8 ++++----
 chrome/content/preferences/preferences.js | 12 ++++++------
 chrome/content/session/sessionStore.js    |  4 ++--
 chrome/content/tab/tab.js                 |  4 ++--
 chrome/content/tabmix.js                  | 30 ++++++++++++++---------------
 chrome/content/utils.js                   |  4 ++--
 modules/MergeWindows.jsm                  |  4 ++--
 modules/RenameTab.jsm                     |  4 ++--
 modules/Shortcuts.jsm                     |  4 ++--
 modules/SingleWindowModeUtils.jsm         |  4 ++--
 modules/log.jsm                           |  4 ++--
 19 files changed, 76 insertions(+), 76 deletions(-)

diff --git a/chrome/content/click/click.js b/chrome/content/click/click.js
index 71c7ba6..7fe9447 100644
--- a/chrome/content/click/click.js
+++ b/chrome/content/click/click.js
@@ -403,7 +403,7 @@ var TabmixContext = {
         break;
       case "popuphidden":
         if (id == "tabContextMenu") {
-          aEvent.target.removeEventListener("popuphidden", this, false);
+          aEvent.target.removeEventListener("popuphidden", this);
           Tabmix.hidePopup(aEvent.target);
         }
         break;
@@ -415,7 +415,7 @@ var TabmixContext = {
     if (event.originalTarget != gBrowser.tabContextMenu)
       return true;
 
-    gBrowser.tabContextMenu.addEventListener("popuphidden", this, false);
+    gBrowser.tabContextMenu.addEventListener("popuphidden", this);
 
     var item, triggerNode = gBrowser.tabContextMenu.triggerNode;
     if (triggerNode.parentNode)
@@ -894,7 +894,7 @@ var TabmixAllTabs = {
       popup.setAttribute("minwidth", popup.boxObject.width);
     }
 
-    gBrowser.tabContainer.mTabstrip.addEventListener("scroll", this, false);
+    gBrowser.tabContainer.mTabstrip.addEventListener("scroll", this);
     this._popup = popup;
     if (!this._popup._updateTabsVisibilityStatus)
       this._popup._updateTabsVisibilityStatus = this._updateTabsVisibilityStatus;
@@ -913,17 +913,17 @@ var TabmixAllTabs = {
       var menuItem = popup.firstChild;
       if (menuItem.id.indexOf("btn_tabslist") != -1)
         break;
-      menuItem.removeEventListener("command", TMP_ClosedTabs, false);
-      menuItem.removeEventListener("click", TMP_ClosedTabs, false);
+      menuItem.removeEventListener("command", TMP_ClosedTabs);
+      menuItem.removeEventListener("click", TMP_ClosedTabs);
       popup.removeChild(menuItem);
     }
 
     if (!aCloseTabsPopup) {
-      gBrowser.tabContainer.addEventListener("TabAttrModified", this, false);
-      gBrowser.tabContainer.addEventListener("TabClose", this, false);
+      gBrowser.tabContainer.addEventListener("TabAttrModified", this);
+      gBrowser.tabContainer.addEventListener("TabClose", this);
     }
-    popup.addEventListener("DOMMenuItemActive", this, false);
-    popup.addEventListener("DOMMenuItemInactive", this, false);
+    popup.addEventListener("DOMMenuItemActive", this);
+    popup.addEventListener("DOMMenuItemInactive", this);
   },
 
   createCommonList: function TMP_createCommonList(popup, aType, side) {
@@ -979,12 +979,12 @@ var TabmixAllTabs = {
     }
 
     if (this._selectedItem)
-      popup.addEventListener("popupshown", this, false);
+      popup.addEventListener("popupshown", this);
   },
 
   _ensureElementIsVisible: function TMP__ensureElementIsVisible(event) {
     var popup = event.target;
-    popup.removeEventListener("popupshown", this, false);
+    popup.removeEventListener("popupshown", this);
     let scrollBox = document.getAnonymousElementByAttribute(popup, "class", "popup-internal-box");
     let items = Array.prototype.slice.call(popup.childNodes);
     let element = items.indexOf(this._selectedItem) < popup.childElementCount / 2 ? popup.firstChild : popup.lastChild;
@@ -1095,11 +1095,11 @@ var TabmixAllTabs = {
       popup.removeAttribute("minwidth");
     }
 
-    gBrowser.tabContainer.removeEventListener("TabAttrModified", this, false);
-    gBrowser.tabContainer.mTabstrip.removeEventListener("scroll", this, false);
-    gBrowser.tabContainer.removeEventListener("TabClose", this, false);
-    popup.removeEventListener("DOMMenuItemActive", this, false);
-    popup.removeEventListener("DOMMenuItemInactive", this, false);
+    gBrowser.tabContainer.removeEventListener("TabAttrModified", this);
+    gBrowser.tabContainer.mTabstrip.removeEventListener("scroll", this);
+    gBrowser.tabContainer.removeEventListener("TabClose", this);
+    popup.removeEventListener("DOMMenuItemActive", this);
+    popup.removeEventListener("DOMMenuItemInactive", this);
 
     this.backupLabel = "";
     this._selectedItem = null;
diff --git a/chrome/content/extensions/extensions.js b/chrome/content/extensions/extensions.js
index 0a3a841..96a2a15 100644
--- a/chrome/content/extensions/extensions.js
+++ b/chrome/content/extensions/extensions.js
@@ -660,9 +660,9 @@ TMP_extensionsCompatibility.treeStyleTab = {
       };
       gBrowser.tabContainer.addEventListener("TabSelect", ontabselect, true);
       window.addEventListener("unload", function onunload() {
-        window.removeEventListener("unload", onunload, false);
+        window.removeEventListener("unload", onunload);
         gBrowser.tabContainer.removeEventListener("TabSelect", ontabselect, true);
-      }, false);
+      });
     }
 
     // we removed TMP_howToOpen function 2011-11-15
diff --git a/chrome/content/extensions/sage.js b/chrome/content/extensions/sage.js
index e5fb3fc..62dae28 100644
--- a/chrome/content/extensions/sage.js
+++ b/chrome/content/extensions/sage.js
@@ -72,6 +72,6 @@ var TMP_Sage = {
 };
 
 window.addEventListener("load", function TMP_onLoad_sageOverlay(aEvent) {
-  aEvent.currentTarget.removeEventListener("load", TMP_onLoad_sageOverlay, false);
+  aEvent.currentTarget.removeEventListener("load", TMP_onLoad_sageOverlay);
   TMP_Sage.init();
-}, false);
+});
diff --git a/chrome/content/flst/lasttab.js b/chrome/content/flst/lasttab.js
index 665cfb9..828766c 100644
--- a/chrome/content/flst/lasttab.js
+++ b/chrome/content/flst/lasttab.js
@@ -55,7 +55,7 @@ var TMP_LastTab = {
     if (Tabmix.isVersion(320)) {
       els.removeSystemEventListener(tabBox._eventNode, "keydown", tabBox, false);
     } else {
-      tabBox._eventNode.removeEventListener("keypress", tabBox, false);
+      tabBox._eventNode.removeEventListener("keypress", tabBox);
       els.addSystemEventListener(tabBox._eventNode, "keypress", this, false);
     }
     els.addSystemEventListener(tabBox._eventNode, "keydown", this, false);
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 019bdfd..0f2e65f 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -1134,8 +1134,8 @@ Tabmix.navToolbox = {
 
   init: function TMP_navToolbox_init() {
     this.updateToolboxItems();
-    gNavToolbox.addEventListener("beforecustomization", this, false);
-    gNavToolbox.addEventListener("aftercustomization", this, false);
+    gNavToolbox.addEventListener("beforecustomization", this);
+    gNavToolbox.addEventListener("aftercustomization", this);
 
     if (!Tabmix.isVersion(290))
       return;
@@ -1160,8 +1160,8 @@ Tabmix.navToolbox = {
   },
 
   deinit: function TMP_navToolbox_deinit() {
-    gNavToolbox.removeEventListener("beforecustomization", this, false);
-    gNavToolbox.removeEventListener("aftercustomization", this, false);
+    gNavToolbox.removeEventListener("beforecustomization", this);
+    gNavToolbox.removeEventListener("aftercustomization", this);
 
     // fix bug 1034394 - tab mix plus's tabmixScrollBox is not cleaned up after
     // uninstalling tab mix plus
@@ -1185,7 +1185,7 @@ Tabmix.navToolbox = {
 
     let alltabsPopup = document.getElementById("alltabs-popup");
     if (alltabsPopup && alltabsPopup._tabmix_inited) {
-      alltabsPopup.removeEventListener("popupshown", alltabsPopup.__ensureElementIsVisible, false);
+      alltabsPopup.removeEventListener("popupshown", alltabsPopup.__ensureElementIsVisible);
     }
   },
 
@@ -1205,7 +1205,7 @@ Tabmix.navToolbox = {
         this.customizeStart();
         break;
       case "customizationchange":
-        gNavToolbox.removeEventListener("customizationchange", this, false);
+        gNavToolbox.removeEventListener("customizationchange", this);
         this.toolboxChanged = true;
         break;
       case "aftercustomization":
@@ -1215,13 +1215,13 @@ Tabmix.navToolbox = {
   },
 
   customizeStart: function TMP_navToolbox_customizeStart() {
-    gNavToolbox.addEventListener("customizationchange", this, false);
+    gNavToolbox.addEventListener("customizationchange", this);
     this.toolboxChanged = false;
     this.customizeStarted = true;
   },
 
   customizeDone: function TMP_navToolbox_customizeDone(aToolboxChanged) {
-    gNavToolbox.removeEventListener("customizationchange", this, false);
+    gNavToolbox.removeEventListener("customizationchange", this);
     this.customizeStarted = false;
 
     if (aToolboxChanged)
@@ -1497,7 +1497,7 @@ Tabmix.navToolbox = {
         let scrollBox = document.getAnonymousElementByAttribute(this, "class", "popup-internal-box");
         scrollBox.ensureElementIsVisible(gBrowser.mCurrentTab.mCorrespondingMenuitem);
       };
-      alltabsPopup.addEventListener("popupshown", alltabsPopup.__ensureElementIsVisible, false);
+      alltabsPopup.addEventListener("popupshown", alltabsPopup.__ensureElementIsVisible);
 
       // alltabs-popup fix visibility for multi-row
       Tabmix.setNewFunction(alltabsPopup, "_updateTabsVisibilityStatus",
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index a09aaf3..e744e82 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -945,7 +945,7 @@ var tablib = { // eslint-disable-line
         m.setAttribute("label", menuLabel);
         m.setAttribute("value", i);
         m.fileName = "closedwindow";
-        m.addEventListener("click", checkForMiddleClick, false);
+        m.addEventListener("click", checkForMiddleClick);
       }
     }
     let restoreAllWindows = undoPopup.lastChild;
diff --git a/chrome/content/overlay/newTab.js b/chrome/content/overlay/newTab.js
index c971f6e..314fb2a 100644
--- a/chrome/content/overlay/newTab.js
+++ b/chrome/content/overlay/newTab.js
@@ -6,11 +6,11 @@
   let PREF = "extensions.tabmix.titlefrombookmark";
   if (Services.prefs.getBoolPref(PREF)) {
     window.addEventListener("load", function loadGrid() {
-      window.removeEventListener("load", loadGrid, false);
+      window.removeEventListener("load", loadGrid);
       let {updateTitles} = Cu.import("resource://tabmixplus/AboutNewTab.jsm", {}).TabmixAboutNewTab;
       if (gGrid.cells) {
         updateTitles(gGrid.cells);
       }
-    }, false);
+    });
   }
 }());
diff --git a/chrome/content/overlay/removeBlankTab.js b/chrome/content/overlay/removeBlankTab.js
index d759a99..28ec0ec 100644
--- a/chrome/content/overlay/removeBlankTab.js
+++ b/chrome/content/overlay/removeBlankTab.js
@@ -94,7 +94,7 @@ var TabmixRemoveBlankTab = {
 
   removeTab(win, tab) {
     window.addEventListener("unload", function _unload(aEvent) {
-      aEvent.currentTarget.removeEventListener("unload", _unload, false);
+      aEvent.currentTarget.removeEventListener("unload", _unload);
       if (win && !win.closed) {
         win.setTimeout(() => {
           let tabBrowser = win && win.gBrowser;
@@ -110,7 +110,7 @@ var TabmixRemoveBlankTab = {
           tabBrowser.removeTab(tab, {animate: false});
         }, 250);
       }
-    }, false);
+    });
   }
 };
 
diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index 170715e..0cf79a3 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -6,19 +6,19 @@ var TMP_Places = {
   prefBookmark: "extensions.tabmix.opentabfor.bookmarks",
 
   addEvent: function TMP_PC_addEvent() {
-    window.addEventListener("load", this, false);
-    window.addEventListener("unload", this, false);
+    window.addEventListener("load", this);
+    window.addEventListener("unload", this);
   },
 
   handleEvent: function TMP_PC_handleEvent(aEvent) {
     switch (aEvent.type) {
       case "load":
-        window.removeEventListener("load", this, false);
+        window.removeEventListener("load", this);
         this.init();
         Tabmix.onContentLoaded.change_utilityOverlay();
         break;
       case "unload":
-        window.removeEventListener("unload", this, false);
+        window.removeEventListener("unload", this);
         this.deinit();
         break;
       case "SSTabRestored":
diff --git a/chrome/content/preferences/preferences.js b/chrome/content/preferences/preferences.js
index f5bea6f..cb5e28b 100644
--- a/chrome/content/preferences/preferences.js
+++ b/chrome/content/preferences/preferences.js
@@ -45,8 +45,8 @@ var gPrefWindow = {
     window.gIncompatiblePane.init(docElt);
 
     this.instantApply = docElt.instantApply;
-    window.addEventListener("change", this, false);
-    window.addEventListener("beforeaccept", this, false);
+    window.addEventListener("change", this);
+    window.addEventListener("beforeaccept", this);
 
     // init buttons extra1, extra2, accept, cancel
     docElt.getButton("extra1").setAttribute("icon", "apply");
@@ -82,8 +82,8 @@ var gPrefWindow = {
   },
 
   deinit() {
-    window.removeEventListener("change", this, false);
-    window.removeEventListener("beforeaccept", this, false);
+    window.removeEventListener("change", this);
+    window.removeEventListener("beforeaccept", this);
     delete Tabmix.getTopWin().tabmix_setSession;
     Shortcuts.prefsChangedByTabmix = false;
     window.gIncompatiblePane.deinit();
@@ -561,13 +561,13 @@ window.gIncompatiblePane = {
   init(docElt) {
     this.paneButton = document.getAnonymousElementByAttribute(docElt, "pane", "paneIncompatible");
     let radioGroup = this.paneButton.parentNode;
-    radioGroup.addEventListener("command", this, false);
+    radioGroup.addEventListener("command", this);
     this.checkForIncompatible(false);
   },
 
   deinit() {
     let radioGroup = this.paneButton.parentNode;
-    radioGroup.removeEventListener("command", this, false);
+    radioGroup.removeEventListener("command", this);
   },
 
   handleEvent(aEvent) {
diff --git a/chrome/content/session/sessionStore.js b/chrome/content/session/sessionStore.js
index b8735a1..83d70c7 100644
--- a/chrome/content/session/sessionStore.js
+++ b/chrome/content/session/sessionStore.js
@@ -392,8 +392,8 @@ var TMP_ClosedTabs = {
       m.setAttribute("value", i);
       m.setAttribute("closemenu", this.keepMenuOpen ? "none" : "auto");
       /* eslint-disable tabmix/balanced-listeners */
-      m.addEventListener("command", this, false);
-      m.addEventListener("click", this, false);
+      m.addEventListener("command", this);
+      m.addEventListener("click", this);
       /* eslint-enable tabmix/balanced-listeners */
       if (i === 0)
         m.setAttribute("key", "key_undoCloseTab");
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 764e8bd..abea832 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -1105,14 +1105,14 @@ Tabmix.bottomToolbarUtils = {
     this.initialized = true;
     //XXX we don't check for aEvent.target != window to catch changes in
     // browser-bottombox. try to improve it...
-    window.addEventListener("resize", this, false);
+    window.addEventListener("resize", this);
   },
 
   onUnload() {
     if (!this.initialized) {
       return;
     }
-    window.removeEventListener("resize", this, false);
+    window.removeEventListener("resize", this);
   },
 
   updatePosition() {
diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index 5f8775a..05364d7 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -247,8 +247,8 @@ Tabmix.afterDelayedStartup = function() {
 
 var TMP_eventListener = {
   init: function TMP_EL_init() {
-    window.addEventListener("DOMContentLoaded", this, false);
-    window.addEventListener("load", this, false);
+    window.addEventListener("DOMContentLoaded", this);
+    window.addEventListener("load", this);
   },
 
   handleEvent: function TMP_EL_handleEvent(aEvent) {
@@ -257,7 +257,7 @@ var TMP_eventListener = {
         this.onTabAttrModified(aEvent);
         break;
       case "SSWindowClosing":
-        window.removeEventListener("SSWindowClosing", this, false);
+        window.removeEventListener("SSWindowClosing", this);
         TabmixSessionManager.onWindowClose(!Tabmix.numberOfWindows());
         break;
       case "SSTabRestoring":
@@ -314,7 +314,7 @@ var TMP_eventListener = {
 
   // ignore non-browser windows
   _onLoad: function TMP_EL_onContentLoaded(aType) {
-    window.removeEventListener(aType, this, false);
+    window.removeEventListener(aType, this);
     let wintype = window.document.documentElement.getAttribute("windowtype");
     if (wintype == "navigator:browser")
       if (aType != "load") {
@@ -324,7 +324,7 @@ var TMP_eventListener = {
         Tabmix.initialization.run("onWindowOpen");
       }
     else if (aType != "load")
-      window.removeEventListener("load", this, false);
+      window.removeEventListener("load", this);
   },
 
   onContentLoaded: function TMP_EL_onContentLoaded() {
@@ -401,8 +401,8 @@ var TMP_eventListener = {
   },
 
   onWindowOpen: function TMP_EL_onWindowOpen() {
-    window.addEventListener("unload", this, false);
-    window.addEventListener("SSWindowClosing", this, false);
+    window.addEventListener("unload", this);
+    window.addEventListener("SSWindowClosing", this);
     window.addEventListener("fullscreen", this, true);
 
     if (Tabmix.isVersion(320)) {
@@ -630,8 +630,8 @@ var TMP_eventListener = {
       if (!fullScrToggler) {
         fullScrToggler = document.createElement("hbox");
         fullScrToggler.id = "fullscr-bottom-toggler";
-        fullScrToggler.addEventListener("mouseover", this._expandCallback, false);
-        fullScrToggler.addEventListener("dragenter", this._expandCallback, false);
+        fullScrToggler.addEventListener("mouseover", this._expandCallback);
+        fullScrToggler.addEventListener("dragenter", this._expandCallback);
         fullScrToggler.hidden = true;
         let bottombox = document.getElementById("browser-bottombox");
         bottombox.appendChild(fullScrToggler);
@@ -1070,8 +1070,8 @@ var TMP_eventListener = {
   },
 
   onWindowClose: function TMP_EL_onWindowClose() {
-    window.removeEventListener("unload", this, false);
-    window.removeEventListener("SSWindowClosing", this, false);
+    window.removeEventListener("unload", this);
+    window.removeEventListener("SSWindowClosing", this);
 
     // notice that windows enumerator don't count this window
     var isLastWindow = Tabmix.numberOfWindows() === 0;
@@ -1099,8 +1099,8 @@ var TMP_eventListener = {
     window.removeEventListener("fullscreen", this, true);
     var fullScrToggler = document.getElementById("fullscr-bottom-toggler");
     if (fullScrToggler) {
-      fullScrToggler.removeEventListener("mouseover", this._expandCallback, false);
-      fullScrToggler.removeEventListener("dragenter", this._expandCallback, false);
+      fullScrToggler.removeEventListener("mouseover", this._expandCallback);
+      fullScrToggler.removeEventListener("dragenter", this._expandCallback);
     }
 
     this.toggleEventListener(gBrowser.tabContainer, this._tabEvents, false);
@@ -1182,8 +1182,8 @@ Tabmix.initialization = {
 
     if (stopInitialization) {
       this.run = function() {};
-      window.removeEventListener("DOMContentLoaded", TMP_eventListener, false);
-      window.removeEventListener("load", TMP_eventListener, false);
+      window.removeEventListener("DOMContentLoaded", TMP_eventListener);
+      window.removeEventListener("load", TMP_eventListener);
     }
 
     delete this.isValidWindow;
diff --git a/chrome/content/utils.js b/chrome/content/utils.js
index c7ae38e..199001a 100644
--- a/chrome/content/utils.js
+++ b/chrome/content/utils.js
@@ -249,10 +249,10 @@ var Tabmix = {
       "resource:///modules/RecentWindow.jsm");
 
     const destroy = () => {
-      window.removeEventListener("unload", destroy, false);
+      window.removeEventListener("unload", destroy);
       this.destroy();
     };
-    window.addEventListener("unload", destroy, false);
+    window.addEventListener("unload", destroy);
 
     var methods = ["changeCode", "setNewFunction", "nonStrictMode",
       "getObject", "log", "getCallerNameByIndex", "callerName",
diff --git a/modules/MergeWindows.jsm b/modules/MergeWindows.jsm
index b0b9fe6..0c9b30d 100644
--- a/modules/MergeWindows.jsm
+++ b/modules/MergeWindows.jsm
@@ -106,10 +106,10 @@ this.MergeWindows = {
     var newWindow = aWindows[0].openDialog("chrome://browser/content/browser.xul",
       "_blank", features, null);
     let mergePopUps = () => {
-      newWindow.removeEventListener("SSWindowStateReady", mergePopUps, false);
+      newWindow.removeEventListener("SSWindowStateReady", mergePopUps);
       this.concatTabsAndMerge(newWindow, aWindows);
     };
-    newWindow.addEventListener("SSWindowStateReady", mergePopUps, false);
+    newWindow.addEventListener("SSWindowStateReady", mergePopUps);
   },
 
   concatTabsAndMerge(aTargetWindow, aWindows) {
diff --git a/modules/RenameTab.jsm b/modules/RenameTab.jsm
index 1c80437..13646cc 100644
--- a/modules/RenameTab.jsm
+++ b/modules/RenameTab.jsm
@@ -85,7 +85,7 @@ this.RenameTab = {
 
   _doShowPanel() {
     var popup = this.panel;
-    popup.addEventListener("keypress", this, false);
+    popup.addEventListener("keypress", this);
     // dock the panel to the tab icon when possible, otherwise show the panel
     // at screen center
     if (this.window.Tabmix.tabsUtils.isElementVisible(this.data.tab))
@@ -155,7 +155,7 @@ this.RenameTab = {
 
   onpopuphidden(aEvent) {
     if (aEvent.originalTarget == this.panel) {
-      this.panel.removeEventListener("keypress", this, false);
+      this.panel.removeEventListener("keypress", this);
       this.window = null;
       this.panel = null;
       this.data = {};
diff --git a/modules/Shortcuts.jsm b/modules/Shortcuts.jsm
index 1253297..47e9cea 100644
--- a/modules/Shortcuts.jsm
+++ b/modules/Shortcuts.jsm
@@ -198,7 +198,7 @@ this.Shortcuts = {
   },
 
   onUnload: function TMP_SC_onUnload(aWindow) {
-    aWindow.removeEventListener("unload", this, false);
+    aWindow.removeEventListener("unload", this);
     let doc = aWindow.document;
     for (let key of Object.keys(this.keys)) {
       let keyData = this.keys[key];
@@ -214,7 +214,7 @@ this.Shortcuts = {
     this._setReloadKeyId(aWindow);
     this.initService(aWindow);
 
-    aWindow.addEventListener("unload", this, false);
+    aWindow.addEventListener("unload", this);
 
     XPCOMUtils.defineLazyGetter(aWindow.Tabmix, "removedShortcuts", () => {
       let document = aWindow.document;
diff --git a/modules/SingleWindowModeUtils.jsm b/modules/SingleWindowModeUtils.jsm
index bed1117..b8b044c 100644
--- a/modules/SingleWindowModeUtils.jsm
+++ b/modules/SingleWindowModeUtils.jsm
@@ -48,12 +48,12 @@ this.SingleWindowModeUtils = {
 
     const onLoad = aEvent => {
       let window = aEvent.currentTarget;
-      window.removeEventListener("load", onLoad, false);
+      window.removeEventListener("load", onLoad);
       let docElement = window.document.documentElement;
       if (docElement.getAttribute("windowtype") == "navigator:browser")
         this.onLoad(window);
     };
-    aWindow.addEventListener("load", onLoad, false);
+    aWindow.addEventListener("load", onLoad);
 
     aWindow.gTMPprefObserver.setLink_openPrefs();
 
diff --git a/modules/log.jsm b/modules/log.jsm
index d76e44b..5d704af 100644
--- a/modules/log.jsm
+++ b/modules/log.jsm
@@ -67,9 +67,9 @@ this.console = {
         };
         if (aWindow) {
           aWindow.addEventListener("unload", function unload(event) {
-            event.currentTarget.removeEventListener("unload", unload, false);
+            event.currentTarget.removeEventListener("unload", unload);
             timer.clear();
-          }, false);
+          });
         }
         timer.initWithCallback({
           notify: function notify() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list