Back out e230a8add766 (bug 623624) for possible Ts regression.
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 23 Feb 2011 15:40:04 -0800
changeset 67423 6684aa6aa2d81af6df2e5e00a931a7db30f553a1
parent 67422 0a8791f5c439f6970bca03b8af133caad233c254
child 67424 d38090a940d8ab3318b4f9280aee5146c7a12bf3
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs623624
Back out e230a8add766 (bug 623624) for possible Ts regression.
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -2667,24 +2667,18 @@ Tab.prototype = {
     let notification = this._notification;
     let browser = this._browser;
 
     if (aActive) {
       browser.setAttribute("type", "content-primary");
       Elements.browsers.selectedPanel = notification;
       browser.active = true;
       document.getElementById("tabs").selectedTab = this._chromeTab;
-
-      // Ensure that the content process has gets an activate event
-      let fl = browser.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader;
-      browser.focus();
-      try {
-        fl.activateRemoteFrame();
-      } catch (e) {}
-    } else {
+    }
+    else {
       browser.messageManager.sendAsyncMessage("Browser:Blur", { });
       browser.setAttribute("type", "content");
       browser.active = false;
     }
   },
 
   get active() {
     if (!this._browser)