diff --git a/toolkit/components/social/FrameWorker.jsm b/toolkit/components/social/FrameWorker.jsm index 50b61ae974e..227b9b7419f 100644 --- a/toolkit/components/social/FrameWorker.jsm +++ b/toolkit/components/social/FrameWorker.jsm @@ -136,6 +136,7 @@ FrameWorker.prototype = { let worker = this; workerWindow.addEventListener("load", function loadListener() { + workerWindow.removeEventListener("load", loadListener); // the iframe has loaded the js file as text - first inject the magic // port-handling code into the sandbox. function getProtoSource(ob) {