From bd1bd4dfd7374f2469e43b9a0fadad52c890edfd Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Mon, 14 Apr 2008 01:00:16 +0000 Subject: [PATCH] Bug 427039: New Bookmark / StarUI pops up in the wrong place if the star is not on the location bar, patch by Ryan A. C. , r=mconnor, ui-r=beltzner, a=pending git-svn-id: svn://10.0.0.236/trunk@250173 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/base/content/browser-places.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/browser/base/content/browser-places.js b/mozilla/browser/base/content/browser-places.js index 61587541bde..4be06a0d83f 100644 --- a/mozilla/browser/base/content/browser-places.js +++ b/mozilla/browser/base/content/browser-places.js @@ -415,6 +415,9 @@ var PlacesCommandHook = { itemId = PlacesUtils.getMostRecentBookmarkForURI(uri); } + // Revert the contents of the location bar + handleURLBarRevert(); + // dock the panel to the star icon when possible, otherwise dock // it to the content area if (aBrowser.contentWindow == window.content) {