Bug 1095457 fix loading frame script in share panel, r=jaws
authorShane Caraveo <scaraveo@mozilla.com>
Mon, 10 Nov 2014 12:36:21 -0800
changeset 214932 be214496ac59a1b8c777ee7ace7e5f41781c4ad5
parent 214858 2da1175e49c8dfe78c7f053bf2ae6450886a0b82
child 214933 ab702308b93aa70b983ef4eacf8da038d982c5e6
push id27801
push usercbook@mozilla.com
push dateTue, 11 Nov 2014 12:14:10 +0000
treeherdermozilla-central@adbbce7da1b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1095457
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1095457 fix loading frame script in share panel, r=jaws
browser/base/content/browser-social.js
--- a/browser/base/content/browser-social.js
+++ b/browser/base/content/browser-social.js
@@ -504,18 +504,18 @@ SocialShare = {
     let iframe = document.createElement("browser");
     iframe.setAttribute("type", "content");
     iframe.setAttribute("class", "social-share-frame");
     iframe.setAttribute("context", "contentAreaContextMenu");
     iframe.setAttribute("tooltip", "aHTMLTooltip");
     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();
   },
 
   getSelectedProvider: function() {
     let provider;
     let lastProviderOrigin = this.iframe && this.iframe.getAttribute("origin");