Bug 796218. Mark initial social panels' docshells as inactive on creation. r=jaws
authorFelipe Gomes <felipc@gmail.com>
Fri, 05 Oct 2012 17:22:09 -0700
changeset 109487 61e6d94f821650ebb183bc4127bf8453d17dfa7b
parent 109486 43f7b44fcf153429c74a6b2e381ccfadedad5649
child 109488 04870d2657db8115444cfa7293b6f803e4c8e639
push id16053
push usermhammond@skippinet.com.au
push dateSat, 06 Oct 2012 07:07:45 +0000
treeherdermozilla-inbound@04870d2657db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs796218
milestone18.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 796218. Mark initial social panels' docshells as inactive on creation. r=jaws
browser/base/content/browser-social.js
--- a/browser/base/content/browser-social.js
+++ b/browser/base/content/browser-social.js
@@ -706,16 +706,17 @@ var SocialToolbar = {
       if (image.getAttribute("src") != icon.iconURL)
         image.setAttribute("src", icon.iconURL);
     }
     notifBox.appendChild(notificationFrames);
     iconBox.appendChild(iconContainers);
 
     for (let frame of createdFrames) {
       if (frame.docShell) {
+        frame.docShell.isActive = false;
         frame.docShell.QueryInterface(Ci.nsIInterfaceRequestor)
                       .getInterface(Ci.nsIWebProgress)
                       .addProgressListener(new SocialErrorListener("notification-panel"),
                                            Ci.nsIWebProgress.NOTIFY_STATE_REQUEST |
                                            Ci.nsIWebProgress.NOTIFY_LOCATION);
       }
     }
   },