bug 915835 fix leak of event handler, r=felipe

This commit is contained in:
Shane Caraveo 2013-09-12 14:39:33 -07:00
parent e21d426633
commit dbccea7742

View File

@ -198,11 +198,12 @@
this.dispatchPanelEvent("socialFrameShow");
sizeSocialPanelToContent(this.panel, this.content);
} else {
this.content.addEventListener("load", function panelBrowserOnload(e) {
let panelBrowserOnload = () => {
this.content.removeEventListener("load", panelBrowserOnload, true);
this.dispatchPanelEvent("socialFrameShow");
sizeSocialPanelToContent(this.panel, this.content);
}.bind(this), true);
};
this.content.addEventListener("load", panelBrowserOnload, true);
}
]]></handler>
<handler event="popuphidden"><![CDATA[