Bug 1095457 fix loading frame script in share panel, r=jaws

This commit is contained in:
Shane Caraveo 2014-11-10 12:36:21 -08:00
parent 018abd5c01
commit 3fc3ce34d6

View File

@ -509,8 +509,8 @@ SocialShare = {
iframe.setAttribute("disableglobalhistory", "true");
iframe.setAttribute("flex", "1");
panel.appendChild(iframe);
iframe.addEventListener("DOMContentLoaded", function _firstload() {
iframe.removeEventListener("DOMContentLoaded", _firstload, true);
iframe.addEventListener("load", function _firstload() {
iframe.removeEventListener("load", _firstload, true);
iframe.messageManager.loadFrameScript("chrome://browser/content/content.js", true);
}, true);
this.populateProviderMenu();