Bug 779077 - Don't focus the content area when closing a places context menu (Port Bug 776271) r=Ratty.
authorTony Mechelynck [:tonymec] <antoine.mechelynck@gmail.com>
Thu, 02 Aug 2012 18:20:04 +0800
changeset 13186 8ba28b3daf3cbaebd36da7c0fef4faf8e9fa1f77
parent 13185 7155880be5bb07b933ae6d451a097dc47635c371
child 13187 0a10c274a1fe037f599647f38fe166060801934b
push idunknown
push userunknown
push dateunknown
reviewersRatty
bugs779077, 776271
Bug 779077 - Don't focus the content area when closing a places context menu (Port Bug 776271) r=Ratty.
suite/common/places/browserPlacesViews.js
--- a/suite/common/places/browserPlacesViews.js
+++ b/suite/common/places/browserPlacesViews.js
@@ -177,18 +177,16 @@ PlacesViewBase.prototype = {
   buildContextMenu: function PVB_buildContextMenu(aPopup) {
     this._contextMenuShown = true;
     window.updateCommands("places");
     return this.controller.buildContextMenu(aPopup);
   },
 
   destroyContextMenu: function PVB_destroyContextMenu(aPopup) {
     this._contextMenuShown = false;
-    if (window.content)
-      window.content.focus();
   },
 
   _cleanPopup: function PVB_cleanPopup(aPopup) {
     // Remove places popup children and update markers to keep track of
     // their indices.
     let start = aPopup._startMarker != -1 ? aPopup._startMarker + 1 : 0;
     let end = aPopup._endMarker != -1 ? aPopup._endMarker :
                                         aPopup.childNodes.length;