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 350396 73430b7a19da9fd34d3622992c6401c866e0e2bf
parent 350395 c3e2971240ea4904fdbd9423b38f4a79cf7d1923
child 350397 c8d78d3fa2018955b230a21c6824cb66ab3fc328
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian, ritu
bugs1304168
milestone50.0
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
@@ -528,17 +528,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;