Closed
Bug 243961
Opened 21 years ago
Closed 21 years ago
When dragging a bookmark in the personal toolbar to the overflow menu it does not open when never dragged anything before
Categories
(SeaMonkey :: Bookmarks & History, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.7final
People
(Reporter: durbacher, Assigned: durbacher)
Details
(Keywords: verified1.7)
Attachments
(1 file)
781 bytes,
patch
|
neil
:
review+
jag+mozilla
:
superreview+
asa
:
approval1.7+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
This problem is left from bug 201854.
Reproducible: Always
Steps to Reproduce:
1. Restart Mozilla completely
2. Make sure to have enough bookmarks in the personal toolbar so some go to the
overflow menu
3. Drag a bookmark from the personal toolbar (or whereever) to the chevron (the
">>" sign that opens the overflow menu)
Actual Results:
It should expand so you can place the bookmark at the desired position inside.
Expected Results:
It does not open, you can release the bookmark, but it is always placed to the
second from last or last position in the overflow menu.
Strangely, if you did any drag-and-drop action on the personal toolbar before,
this works. This is probably also, why I did not spot this problem earlier.
Assignee | ||
Comment 1•21 years ago
|
||
The problem is that getBTOrientation does not know the "bookmarks-chevron" as a
drop target yet, while it really should. Mostly it says the bookmark is dropped
before or after the chevron itself and then
aTarget.lastChild.showPopup(aTarget);
is not called because
if (this.mCurrentDropPosition == BookmarksUtils.DROP_ON && [...]
is false.
This is caused by isBTContainer claiming the chevron is no container:
getBTOrientation in this case only allows drops before and after the item, not
*on* it.
After the first drop action the chevron suddenly *does* have the "container"
attribute (it happens during moveSelection in bookmarks.js, more exactly during
the call in line 1635, some levels deeper).
Therefore drops *on* it are allowed afterwards.
This patch makes drops to the chevron always happen *on* it, thus opening it. I
think this is the best behaviour because it makes no sense to drop an item to
its right and if you want to drop to its left you don't need to hit those 1-2
pixels of border that would make it drop there (it wouldn't work anyway because
the item would still go *into* the overflow menu, as second from last item).
I also considered additionally making the "bookmarks-chevron" have the
attribute by explicitly setting it in navigator.xul, but it's not really
needed. If it is desired, just say it and I'll produce a patch with it.
Assignee: p_ch → durbacher
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 148765 [details] [diff] [review]
patch
Requesting r= from Neil.
Would be nice if this could go into 1.7...
Attachment #148765 -
Flags: review?(neil.parkwaycc.co.uk)
Updated•21 years ago
|
Attachment #148765 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Assignee | ||
Comment 3•21 years ago
|
||
Comment on attachment 148765 [details] [diff] [review]
patch
Requesting sr= from alecf.
Attachment #148765 -
Flags: superreview?(alecf)
Assignee | ||
Updated•21 years ago
|
Summary: When dragging a bookmark in the personal toolbar to the overflow menu it does not open when never opened before → When dragging a bookmark in the personal toolbar to the overflow menu it does not open when never dragged anything before
Target Milestone: --- → mozilla1.7final
Comment 4•21 years ago
|
||
Comment on attachment 148765 [details] [diff] [review]
patch
sr=jag
Attachment #148765 -
Flags: superreview?(alecf) → superreview+
Assignee | ||
Comment 5•21 years ago
|
||
Comment on attachment 148765 [details] [diff] [review]
patch
Requesting approval for 1.7.
This is very low risk and quite visible because it happens when trying to us a
new feature for the first time.
Attachment #148765 -
Flags: approval1.7?
Comment 6•21 years ago
|
||
Comment on attachment 148765 [details] [diff] [review]
patch
a=asa (on behalf of drivers) for checkin to 1.7
Attachment #148765 -
Flags: approval1.7? → approval1.7+
Comment 7•21 years ago
|
||
Fix checked in to branch and trunk.
I cannot reproduce 2004052208-trunk/WinXP-JA.
thanks for fixing this.
Assignee | ||
Comment 9•21 years ago
|
||
Verified per last comment and own testing with current trunk nightly.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Keywords: fixed1.7 → verified1.7
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•