With a branch build (1.1.5pre), I made a bookmarks folder and tried to move it. That failed with:
Error: aArray has no properties
Source File: chrome://communicator/content/bookmarks/bookmarks.js
Looking at the code...
aSelection.isValid = BookmarksUtils.isSelectionValidForInsertion(aSelection, aTarget, "move");
isSelectionValidForInsertion checks some things and (in my case) returns |aSelection.isValid| (which happens to be void). So, the net result is:
aSelection.isValid = aSelection.isValid;
so aSelection.isValid is bogus and then later on it tries to use it (in BookmarksUtils.any(transaction.isValid);).
moveSelection is being called by onDrag in bookmarksTree.xml (line 605), which gets |seletion| from BookmarksUtils.getSelectionFromXferData(dragSession).
this regressed on the branch (although bookmarks code itself hasn't changed). 1.1.4 doesn't have the problem. trunk is also OK.
Regression from bug 267833 perhaps?
I actually get a different JS error just by opening Bookmarks, but it goes away if I back out attachment 280936 [details] [diff] [review] locally...
So... I just opened bookmarks manager, pointed the mouse at a folder, dragged it to another folder, and dropped. That works, with no JS errors.
Am I using the wrong steps to reproduce? What are the right ones? Are people testing in a build with the patch for bug 398404 in it?
> So... I just opened bookmarks manager, pointed the mouse at a folder, dragged
> it to another folder, and dropped. That works, with no JS errors.
I was dragging a folder and dropping between two existing bookmarks, but using your steps also fails.
I see the bug with today's nightly branch build.
this regressed due to bug 179658... not sure how 267833 is related (I don't see an error just opening bookmarks manager)
I suggest filing a core bug to track the issue too, so branch drivers will see it.
actually, I'm going to move this to core since (AFAICT) there is no bug in SeaMonkey code...
this is failing because on
DS.getCurrentSession() returns a session whose numDropItems = 0 (before bug 179658, it was 1).
(In reply to comment #5)
>Are people testing in a build with the patch for bug 398404 in it?
I wasn't. Sorry about that.
Created attachment 283838 [details]
nsDragService log before/after bug 179658
This is an nsDragService:5 log before (1 items) and after (0 items)
FWIW, I see the same behavior in a current Firefox branch CVS build.
(In reply to comment #12)
> FWIW, I see the same behavior in a current Firefox branch CVS build.
confirmed, i see the same with 22.214.171.124rc1 builds like Mozilla/5.0 (X11; U; Linux i686; da; rv:126.96.36.199) Gecko/2007100416 Firefox/188.8.131.52 on Linux. Windows and Mac are fine.
Speaking briefly with dveditz, I wondered whether this would affect Thunderbird. I just tested version 184.108.40.206pre (20071008) on Ubuntu and I do not see this problem in Thunderbird.
Backed the fix out of the 1.8 branch as well as the GECKO181_20071004_RELBRANCH
verified fixed 220.127.116.11 using Mozilla/5.0 (X11; U; Linux i686; en-US; rv:18.104.22.168) Gecko/2007100816 Firefox/22.214.171.124 (Firefox 126.96.36.199 RC2)
Dragging bookmarks folder works now as expected and without any JS error in the Error Console
-> Adding verified keyword
Correcting blocking flags that got renamed due to firedrill release insertions