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. <fittysix@gmail.com>, r=mconnor, ui-r=beltzner, a=pending

This commit is contained in:
gavin@gavinsharp.com 2008-04-13 18:00:16 -07:00
parent 24ab5d0be7
commit 1319d00028

View File

@ -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) {