Bug 700495 - [birch] Use ES5 strict mode in browser.js [r=wesj]

This commit is contained in:
Matt Brubeck 2011-11-07 17:10:59 -08:00
parent 1de0fce051
commit 6ec83087c3

View File

@ -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;