Bug 779077 - Don't focus the content area when closing a places context menu (Port Bug 776271) r=Ratty a=Callek RELEASE_BASE_20120824 SEAMONKEY_2_12b6_BUILD1 SEAMONKEY_2_12b6_RELEASE
authorTony Mechelynck [:tonymec] <antoine.mechelynck@gmail.com>
Tue, 31 Jul 2012 12:00:00 -0400
changeset 12566 194320465afc78c4be0e79a2356717c73a029040
parent 12565 4519d9baf3f4725a50e99ef7533967858e13e37b
child 12570 e1b41ab5ec2632e3acc70879ebec72b3a1675f1e
child 12572 14b359d513900a7a82e4ec0fc872d80ba3e2b3c7
push idunknown
push userunknown
push dateunknown
reviewersRatty, Callek
bugs779077, 776271
Bug 779077 - Don't focus the content area when closing a places context menu (Port Bug 776271) r=Ratty a=Callek
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;