Bug 773164: remove social frameworker load listener. r=gavin

This commit is contained in:
Mark Hammond 2012-07-16 15:31:22 +10:00
parent b6e2f191d0
commit 37f0a0f325

View File

@ -136,6 +136,7 @@ FrameWorker.prototype = {
let worker = this; let worker = this;
workerWindow.addEventListener("load", function loadListener() { workerWindow.addEventListener("load", function loadListener() {
workerWindow.removeEventListener("load", loadListener);
// the iframe has loaded the js file as text - first inject the magic // the iframe has loaded the js file as text - first inject the magic
// port-handling code into the sandbox. // port-handling code into the sandbox.
function getProtoSource(ob) { function getProtoSource(ob) {