Bug 1098437 fix handling of webrtc messages in chat window, r=markh,florian

This commit is contained in:
Shane Caraveo 2014-12-10 14:47:46 -08:00
parent 3ac22ecb8c
commit 57afc8ed1c

View File

@ -53,6 +53,14 @@
this.isActive = !this.minimized;
this._deferredChatLoaded.resolve(this);
}, true);
// load content.js to support webrtc, fullscreen, etc.
this.addEventListener("load", function loaded(event) {
this.removeEventListener("load", loaded, true);
let mm = this.content.messageManager;
mm.loadFrameScript("chrome://browser/content/content.js", true);
}, true);
if (this.src)
this.setAttribute("src", this.src);
]]></constructor>