Closed Bug 288197 Opened 20 years ago Closed 20 years ago

Cannot drag URL to subfolders on Bookmarks Toolbar

Categories

(Firefox :: Bookmarks & History, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bugzilla.mozilla.org-3, Assigned: vladimir+bm)

Details

When dragging a URL to a subfolder on the Bookmarks Toolbar, the subfolder
closes before the icon is dropped.

Steps to reproduce:
1. Turn on the Bookmarks Toolbar
2. Create a folder on the toolbar and add a few links
3. Restart Firefox
4. Go to any page
5. Drag the proxy icon from the location bar to the folder on the Bookmarks
Toolbar, wait for the folder to open and then drop the icon somewhere below the
second bookmark in the folder.
6. Repeat step 5.

Expected result:
In step 6 the folder should behave like in step 5, i.e. it should stay open
until the icon is dropped.

Actual result:
In step 6 the folder closes, when the cursor moves below the first bookmark in
the folder.

This bug prevents the user from adding a bookmark to a specific place in the
folder using drag'n'drop. The only way to add a bookmark to the folder is to
drop the icon on the folder name or on the first bookmark in the folder. This
will add the link as the last or first bookmark in the folder, respectively.

This problems also exists in the suite.

It only experience this problem on Linux. On Windows it works fine.

The are quite a lot of bugs regarding drag'n'drop on the Bookmarks Toolbar, but
I haven't been able to find a bug describing this exact problem.
BTW I see this in current trunk builds of Firefox and the suite, and in Firefox 1.0.
I tried disabling the closing of the folder in bookmarksMenu.js and inserted
some debugging code in onDragEnter/onDragExit.

Appearently onDragEnter/onDragExit are not called when the cursor moves below a
certain horizontal line. This is the line that seperates the tab bar and the
browser content area.

When the mouse is over the first bookmark in the folder or over the upper few
pixels of the the second bookmark, the events are fired. But when the mouse
moves below the mentioned line, onDragExit is called even though the cursor is
above the middle of the second bookmark in the folder. Dragging the cursor
further down over the other bookmarks in the folder does not fire the events.

It looks as if the page currently loaded in the browser gets the events instead.
If the page contains text input fields, the caret jumps between the fields when
the cursor is dragged around in the menu. This does not happen during the first
drag operation per browser session, when the drag'n'drop works as expected.
I upgraded from Red Hat 9 to Fedora Core 3, and now it works in both Firefox 1.0
and a recent trunk build! So the problem was probably not Firefox but something
else.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs, filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → bookmarks
You need to log in before you can comment on or make changes to this bug.