From 327f96d6412a06b5a7562bf96c78a81f3974c2c0 Mon Sep 17 00:00:00 2001 From: Dave Townsend Date: Thu, 10 Jun 2010 18:47:14 -0700 Subject: [PATCH] Bug 570977: xpinstall tests get confused by multiple load events. r=robstring --- toolkit/mozapps/extensions/test/xpinstall/head.js | 1 + 1 file changed, 1 insertion(+) diff --git a/toolkit/mozapps/extensions/test/xpinstall/head.js b/toolkit/mozapps/extensions/test/xpinstall/head.js index bd2bf7ccd177..fde80c010b1c 100644 --- a/toolkit/mozapps/extensions/test/xpinstall/head.js +++ b/toolkit/mozapps/extensions/test/xpinstall/head.js @@ -184,6 +184,7 @@ var Harness = { .getInterface(Components.interfaces.nsIDOMWindowInternal); var self = this; domwindow.addEventListener("load", function() { + domwindow.removeEventListener("load", arguments.callee, false); self.windowLoad(domwindow); }, false); },