Bug 588713 - Fennec should set docShell.isActive correctly [r=mfinkle]
authorJan Arne Petersen <jap@gnome.org>
Thu, 19 Aug 2010 14:01:48 -0400
changeset 66461 13a32307f04ededefd4d2156749ba19a6b9310eb
parent 66460 531384b45203b064b0b1a5b1b500d2d33b238fb1
child 66462 b3ff64a19a4a69e6d7d9edb41d8a8d08691bd799
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)
reviewersmfinkle
bugs588713
Bug 588713 - Fennec should set docShell.isActive correctly [r=mfinkle]
mobile/chrome/content/content.js
--- a/mobile/chrome/content/content.js
+++ b/mobile/chrome/content/content.js
@@ -447,23 +447,23 @@ Content.prototype = {
     let json = aMessage.json;
     let x = json.x;
     let y = json.y;
     let modifiers = json.modifiers;
 
     switch (aMessage.name) {
       case "Browser:Blur":
         docShell.isOffScreenBrowser = false;
-        docShell.isActive = true;
+        docShell.isActive = false;
         this._selected = false;
         break;
 
       case "Browser:Focus":
         docShell.isOffScreenBrowser = true;
-        docShell.isActive = false;
+        docShell.isActive = true;
         this._selected = true;
         break;
 
       case "Browser:KeyEvent":
         let utils = Util.getWindowUtils(content);
         let defaultAction = utils.sendKeyEvent(json.type, json.keyCode, json.charCode, modifiers);
         if (defaultAction && json.type == "keypress") {
           const masks = Ci.nsIDOMNSEvent;