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
Родитель aaad7da285
Коммит bbebb9fcd5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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();