We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a7f4b9 commit 6c58f7eCopy full SHA for 6c58f7e
1 file changed
browser/components/places/PlacesUIUtils.jsm
@@ -461,8 +461,8 @@ var PlacesUIUtils = {
461
* @returns {PlacesController} a places controller
462
*/
463
getControllerForCommand(win, command) {
464
- // A context menu may be built for non-focusable views. Thus, we first try
465
- // to look for a view associated with document.popupNode
+ // If we're building a context menu for a non-focusable view, for example
+ // a menupopup, we must return the view that triggered the context menu.
466
let popupNode = PlacesUIUtils.lastContextMenuTriggerNode;
467
if (popupNode) {
468
let isManaged = !!popupNode.closest("#managed-bookmarks");
0 commit comments