From 20aadf8e9b7e8f1c79ca1dcbf03440aa41bf4fb0 Mon Sep 17 00:00:00 2001 From: "annie.sullivan%gmail.com" Date: Sat, 18 Feb 2006 00:23:40 +0000 Subject: [PATCH] Checking in patch from mossop@blueprintit.co.uk to make context menu open work in places bar subfolders. r=annie.sullivan@gmail.com bug=325782 git-svn-id: svn://10.0.0.236/trunk@190465 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/components/places/content/commands.inc | 2 +- mozilla/browser/components/places/content/menu.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/browser/components/places/content/commands.inc b/mozilla/browser/components/places/content/commands.inc index 558bfe6e6b1..832685dfbd8 100755 --- a/mozilla/browser/components/places/content/commands.inc +++ b/mozilla/browser/components/places/content/commands.inc @@ -1,5 +1,5 @@ diff --git a/mozilla/browser/components/places/content/menu.xml b/mozilla/browser/components/places/content/menu.xml index 40592a23ced..bb8e1a4cd46 100755 --- a/mozilla/browser/components/places/content/menu.xml +++ b/mozilla/browser/components/places/content/menu.xml @@ -598,6 +598,9 @@ return; this._selection = event.target.node; PlacesController.activeView = this; + // When right clicking an item in a bookmarks menu the places commands + // need to be updated for the context menu to appear correctly. + document.commandDispatcher.updateCommands("click"); // Only left and middle clicks should load the URI if (event.button > 1) return;