From 6ec83087c3394db040d3f062f3adb0bfc22c20a4 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Mon, 7 Nov 2011 17:10:59 -0800 Subject: [PATCH] Bug 700495 - [birch] Use ES5 strict mode in browser.js [r=wesj] --- mobile/chrome/content/browser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index c53d947d29c..3776886d529 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;