Closed Bug 243720 Opened 20 years ago Closed 20 years ago

bookmark can't move into sub-folder in personal toolbar (drag and drop)

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8alpha3

People

(Reporter: baffclan, Assigned: roc)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040515
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040515

bookmark can't move into sub-folder in personal toollbar.


Reproducible: Always
Steps to Reproduce:
1. bookmark drag a folder on personal tollbar.
2. folder is opend.
3. and dragging on sub-folder.
4. can not open subfolder.
5. can not drop bookmark.

Actual Results:  
Can not move bookmark sub-folder in personal toollbar.

Expected Results:  
Can move any bookmark.
Confirming, this happens on current trunk, but _not_ on the 1.7 branch. Bug
201854, the only change in bookmarksMenu.js since the branch was cut, therefore
cannot be responsible (it is also on the branch).
Bug 221619 was the only other one touching the bookmarks js files in the last
weeks, but looks unlikely to be the reason.
-> NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
This regressed between builds 2004-05-13-08 and 2004-05-13-15 - narrow
timeframe, but still a lot of checkins...

I just verified my patch for bug 210719 is _not_ the culprit by reversing the
patch and recompiling.
The same way I checked bug 242833 and bug 107518.

What is left? Bug 191839 is pretty large, apart from that only smaller fixes
that do not seem related...
Summary: bookmark can't move into sub-folder in personal toolbar → bookmark can't move into sub-folder in personal toolbar (drag and drop)
Firefox 1.8a: 2004051408 is showing the same problem
Finally found it (by selectively removing patches and rebuilding): bug 242833
caused this regression. Sounds most logical, anyway. Not sure why I tested so
many other checkins before...
> 1. bookmark drag a folder on personal tollbar.

What does this mean? I can't drag a toolbar folder.
(In reply to comment #5)
> > 1. bookmark drag a folder on personal tollbar.
> 
> What does this mean? I can't drag a toolbar folder.

Drag a icon from the Location Bar into a folder in a folder in the Personal Toolbar.
The folder in the PT opens, but folders in this folder don´t open, when trying
to drop a bookmark.
I tried this on Linux and it seems to still work. Could it be Windows only?
(In reply to comment #7)
> I tried this on Linux and it seems to still work. Could it be Windows only?

Also don´t work:
Instead of dragging the icon down to a folder in PT, you can drag it left and up
to the Bookmarks menu, that opens, and you can drag down and drop where you
want, but folders don´t open.

This regressed  1.8a: 2004051408 on Mozilla and Firefox, tested in Windows

Working: Folders in Personal Toolbar 
open when hovered, for selecting or dropping  a bookmark

Working: Folders in folders in Personal Toolbar 
open when hovered, for selecting a bookmark only.

Regressed: Folders in folders in Personal Toolbar 
don´t open when hovered, while dragging a bookmark from the Location bar.


Workaround 1: 
if you have Bookmarks Manager minimized in the Windows taskbar, drag the icon
there, Bookmarks Manager maximizes, and you can drag the bookmark where you want
to, folders in folders are opening when hovered.

Workaround 2:
drop the icon between two folders, so later you know that that isn´t at the
right place. Later open Bookmarks Manager, and drag and drop these misplaced
bookmarks.
Summary: bookmark can't move into sub-folder in personal toolbar (drag and drop) → bookmark can't move into sub-folder in personal toolbar (drag and drop)
Yeah, that stuff definitely works for me in Linux.
Someone should try the patch that I'm about to attach in bug 243757
roc:
no luck.
However, maybe my knowledge about bookmarksMenu.js can help you track it down;
getBTOrientation in:
http://lxr.mozilla.org/seamonkey/source/xpfe/components/bookmarks/resources/bookmarksMenu.js#191
is responsible for deciding if the bookmark insert line for dropping is BEFORE
or AFTER the item or the item can be dropped ON/into a container.
Somehow this might never return ON because it gets wrong numbers, which would
cause this bug.
Thanks. I think I found the problem.
This code assumes that clientX/Y is relative to the parent box object. In the
old code, we made clientX/Y relative to the popup. In the new code, I intended
it to be relative to the document origin, but instead it's just wrong. The
question is, what should clientX/Y be in this case? Is it reasonable to make it
relative to the popup, or is that a genuine violation of the spec? If we make it
relative to the document origin, is it possible to fix current users?
I think the thing to do would be to make clientX/Y relative to the document
origin, not the popup origin, and in this code compare boxObject.screenX/Y to
event.screenX/Y
*** Bug 244729 has been marked as a duplicate of this bug. ***
Still in
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040607

Robert, have you identified the bug yet?
Yes I have. But I haven't fixed it :-(
Severity: normal → major
Flags: blocking1.8a2?
Strange, I am getting this bug on-and-off in various nightlies (mostly on!).
Currently, it's not working (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.8a2) Gecko/20040628 Firefox/0.8.0+).
Flags: blocking1.8a2? → blocking1.8a2-
*** Bug 245754 has been marked as a duplicate of this bug. ***
This is a major usability problem (at least for me). Requesting blocking status.
Flags: blocking-aviary1.0RC1?
Flags: blocking-aviary1.0?
I thought I could reproduce this before. I can't reproduce it now, on a ~1-week
old trunk build.
Attached patch potential fix (obsolete) — Splinter Review
This patch *should* fix the bug if there still is one. So if you're still
having problems with this bug, please apply this patch. If the patch fixes the
bug for you, we'll check it in.
(In reply to comment #22)
> Created an attachment (id=152999)
> potential fix
> 
> This patch *should* fix the bug if there still is one.

[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a1) Gecko/20040520] (release) (W98SE)

This is a fix for v1.8a1 :-)
I did not try any v1.8a2 nighlies (with/without the patch)...
Serge, you mean you see the bug without this patch, and this patch makes the bug
go away?
(In reply to comment #24)
> Serge, you mean you see the bug without this patch, and this patch makes the bug
> go away?

Exactly: your patch fixes my v1.8a1 :-)
Attachment #152999 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #152999 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 152999 [details] [diff] [review]
potential fix

>-        coordValue = overButtonBoxObject.x;
>-        clientCoordValue = aEvent.clientX;
>+        coordValue = overButtonBoxObject.screenX;
>+        clientCoordValue = aEvent.screenX;
No point penalizing X users for code that works.
r=me on the menu change.
Attachment #152999 - Flags: review?(neil.parkwaycc.co.uk) → review+
Okay, I checked that in. I'll leave this open because I need to fix
clientX/clientY in popups.

The patch needs aviary checkin.
(In reply to comment #27)
> Okay, I checked that in. I'll leave this open because I need to fix
> clientX/clientY in popups.

[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a2) Gecko/20040714] (release) (W98SE)

Your
{{
2004-07-17 05:25	roc+%cs.cmu.edu 	mozilla/ xpfe/ components/ bookmarks/
resources/ bookmarksMenu.js 	1.15
}}
causes
{{
Warning: reference to undefined property overButtonBoxObject.clientX
Source File: chrome://communicator/content/bookmarks/bookmarksMenu.js
Line: 216
}}

while your proposed patch, using |overButtonBoxObject.screenX|, seemed to work...
roc, you didn't undo the first change properly :-(
Also xpfe rules don't allow r+sr yet, unless jag forgot to tell me ;-)
Sorry. I backed it out.
Attached patch correct fixSplinter Review
Okay
Assignee: p_ch → roc
Status: NEW → ASSIGNED
Comment on attachment 153566 [details] [diff] [review]
correct fix

who should I get to sr this, then?
Attachment #153566 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #153566 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #153566 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #153566 - Flags: review+
Attachment #153566 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Attachment #152999 - Attachment is obsolete: true
Attachment #152999 - Flags: superreview?(neil.parkwaycc.co.uk)
checked in. thanks guys.
This is not reproduced with 2004071808-trunk/WinXP :-)
Flags: blocking-aviary1.0RC1?
Flags: blocking-aviary1.0RC1-
Flags: blocking-aviary1.0?
Flags: blocking-aviary1.0-
That patch, or something like it, should go into the Aviary branch, assuming
Firefox supports dragging bookmarks into the menu.
Yes, Firefox seems to support it.
That part of bookmarksMenu.js is identical in /xpfe and /browser, so I guess the
patch is the same; I was just about to make a diff for the /browser version...
Will request review once it's tested.
Comment on attachment 154037 [details] [diff] [review]
fix for firefox (what an alliteration!)

Ok, tested the patch, works just like in Seamonkey.

I'm not familiar with the Firefox review rules and the reviewers'
responsiveness ... I'll pick blake and bryner for this small and easy port of
roc's patch.
Attachment #154037 - Flags: superreview?(bryner)
Attachment #154037 - Flags: review?(firefox)
Comment on attachment 154037 [details] [diff] [review]
fix for firefox (what an alliteration!)

I was told this only needs review (+approval) and vlad would be the man for
it...
Attachment #154037 - Flags: superreview?(bryner)
Attachment #154037 - Flags: review?(vladimir)
Attachment #154037 - Flags: review?(firefox)
Comment on attachment 154037 [details] [diff] [review]
fix for firefox (what an alliteration!)

looks fine to me, r=vladimir
Attachment #154037 - Flags: review?(vladimir)
Attachment #154037 - Flags: review+
Attachment #154037 - Flags: approval-aviary?
Comment on attachment 154037 [details] [diff] [review]
fix for firefox (what an alliteration!)

a=asa
Attachment #154037 - Flags: approval-aviary? → approval-aviary+
In on aviary and firefox trunk.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
Target Milestone: --- → mozilla1.8alpha3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: