Skip to content

Commit 6c58f7e

Browse files
committed
Bug 1706004 - Delete reference to document.popupNode in Places. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D128038
1 parent 3a7f4b9 commit 6c58f7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

browser/components/places/PlacesUIUtils.jsm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ var PlacesUIUtils = {
461461
* @returns {PlacesController} a places controller
462462
*/
463463
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
464+
// If we're building a context menu for a non-focusable view, for example
465+
// a menupopup, we must return the view that triggered the context menu.
466466
let popupNode = PlacesUIUtils.lastContextMenuTriggerNode;
467467
if (popupNode) {
468468
let isManaged = !!popupNode.closest("#managed-bookmarks");

0 commit comments

Comments
 (0)