Closed Bug 301983 Opened 19 years ago Closed 12 years ago

empty folder has toolbar and file and edit commands all greyed out

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: wsmwk, Unassigned)

Details

(Whiteboard: [2012 Fall Equinox])

Attachments

(1 file)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050720
SeaMonkey/1.0a

steps to reproduce:
1. manage bookmarks
2. create empty folder
3. r-click empty folder and "open in new folder" 

results:
all toolbar icons (eg. new folder, new separator), file commands (new bookmark)
and edit commands (paste) are greyed out, (see attachment)

expected results:
commands/toolbar items that can create objects in the folder are functional

(possible dup of Bug 230563 - but won't know til the patch for it tests out)
I'm seeing this even with a folder that does have bookmarks as long as none of
them are selected.
OS: Windows XP → All
Version: unspecified → Trunk
(In reply to comment #2)
> I'm seeing this even with a folder that does have bookmarks as long as none of
> them are selected.

quite right.

select said folder
click and drag a bookmark from the window to another window
no bookmark is selected (a bug?)
functions are greyed out.
similar symptoms in FF bug 250821 and Bug 250821
enabling the menu and toolbars is easy enough.  Just return true here:
http://lxr.mozilla.org/seamonkey/source/xpfe/components/bookmarks/resources/bookmarks.js#867

The problem is that (because of the way XUL/js work) actually creating a new
folder/bookmark, etc needs to have a target (something selected)
http://lxr.mozilla.org/seamonkey/source/xpfe/components/bookmarks/resources/bookmarks.js#946
so that it knows where to put it.  If nothing is selected, the new item should
go into the top-level location, but I don't know how to get ahold of the
top-level location from that context.
Assignee: nobody → nobody
Can't reproduce this as no menu item "Open in new window" available, so closing as WFM
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/18.0 Firefox/18.0 SeaMonkey/2.15a1
Build identifier: 20120921003032
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Whiteboard: [2012 Fall Equinox]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: