Bug 1304168 - Use correct function name to remove event listener. r=sebastian, a=ritu
authorJan Henning <jh+bugzilla@buttercookie.de>
Tue, 20 Sep 2016 22:20:23 +0200
changeset 355738 e2e56343018054179ec14eb995311aecd2460838
parent 355737 6113e35158152399c30ad5f86ccfa21532b2b3d8
child 355739 3c170bce64e399ed1ef38a3f48587b9c89d5dc8a
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian, ritu
bugs1304168
milestone51.0a2
Bug 1304168 - Use correct function name to remove event listener. r=sebastian, a=ritu MozReview-Commit-ID: HJgrdLstQ3R
mobile/android/components/SessionStore.js
--- a/mobile/android/components/SessionStore.js
+++ b/mobile/android/components/SessionStore.js
@@ -563,17 +563,17 @@ SessionStore.prototype = {
     this._updateCrashReportURL(aWindow);
   },
 
   onTabRemove: function ss_onTabRemove(aWindow, aBrowser, aNoNotification) {
     // Cleanup event listeners
     aBrowser.removeEventListener("DOMTitleChanged", this, true);
     aBrowser.removeEventListener("load", this, true);
     aBrowser.removeEventListener("pageshow", this, true);
-    aBrowser.removeListener("AboutReaderContentReady", this, true);
+    aBrowser.removeEventListener("AboutReaderContentReady", this, true);
     aBrowser.removeEventListener("change", this, true);
     aBrowser.removeEventListener("input", this, true);
     aBrowser.removeEventListener("DOMAutoComplete", this, true);
     aBrowser.removeEventListener("scroll", this, true);
     aBrowser.removeEventListener("resize", this, true);
 
     delete aBrowser.__SS_data;