Bug 531105: Fennec gets focus after page load is complete while user has switched to another app/desktop on N900 [r=gavin.sharp]
authorMark Finkle <mfinkle@mozilla.com>
Fri, 27 Nov 2009 19:18:45 -0500
changeset 65853 5289df53bee33baef75b8dc4fadab1bd52b30707
parent 65852 75a03dfa8ef38719bb173731af838302d849729e
child 65854 bff84b65b812ab696dc9a935bcc695fd031f7b29
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)
reviewersgavin
bugs531105
Bug 531105: Fennec gets focus after page load is complete while user has switched to another app/desktop on N900 [r=gavin.sharp]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -2360,22 +2360,16 @@ ProgressController.prototype = {
     
     if (this.browser.currentURI.spec != "about:blank")
       this._tab.updateThumbnail();
   },
 
   _documentStop: function() {
     // translate any phone numbers
     Browser.translatePhoneNumbers();
-
-    if (this._tab == Browser.selectedTab && !BrowserUI.isAutoCompleteOpen()) {
-      // focus the dom window
-      if (this.browser.currentURI.spec != "about:blank")
-        this.browser.contentWindow.focus();
-    }
   }
 };
 
 var OfflineApps = {
   get _pm() {
     delete this._pm;
     return this._pm = Cc["@mozilla.org/permissionmanager;1"].getService(Ci.nsIPermissionManager);
   },