diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index c53d947d29c1..3776886d5296 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -35,6 +35,7 @@ * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ +"use strict"; let Cc = Components.classes; let Ci = Components.interfaces; @@ -1088,9 +1089,9 @@ var BrowserEventHandler = { if (/^about:/.test(aEvent.originalTarget.documentURI)) { let browser = BrowserApp.getBrowserForDocument(aEvent.originalTarget); browser.addEventListener("click", ErrorPageEventHandler, false); - browser.addEventListener("pagehide", function () { + browser.addEventListener("pagehide", function listener() { browser.removeEventListener("click", ErrorPageEventHandler, false); - browser.removeEventListener("pagehide", arguments.callee, true); + browser.removeEventListener("pagehide", listener, true); }, true); } break; diff --git a/widget/src/android/AndroidBridge.h b/widget/src/android/AndroidBridge.h index 66aba2a3b979..2201fba96dca 100644 --- a/widget/src/android/AndroidBridge.h +++ b/widget/src/android/AndroidBridge.h @@ -378,7 +378,6 @@ protected: jmethodID jHandleGeckoMessage; jmethodID jCheckUriVisited; jmethodID jMarkUriVisited; - jmethodID jEmitGeckoAccessibilityEvent; jmethodID jEnableBatteryNotifications; jmethodID jDisableBatteryNotifications; jmethodID jGetCurrentBatteryInformation;