From 4ac8cef7adeac1dbd7ff67fa4fa7e80a886addf6 Mon Sep 17 00:00:00 2001 From: "cst%yecc.com" Date: Sat, 5 May 2007 04:37:24 +0000 Subject: [PATCH] Bug 354140 In , "Error: aDragSession.sourceNode has no properties" r+sr=neil --- suite/common/bookmarks/bookmarksMenu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/suite/common/bookmarks/bookmarksMenu.js b/suite/common/bookmarks/bookmarksMenu.js index c7a0f65615d..be14939321c 100644 --- a/suite/common/bookmarks/bookmarksMenu.js +++ b/suite/common/bookmarks/bookmarksMenu.js @@ -474,7 +474,9 @@ var BookmarksMenuDNDObserver = { { var target = aEvent.target; - if (aDragSession) { // this function gets its API abused by onDragStart + // onDragStart calls this without a drag session + // There will be no sourceNode for drags from external apps + if (aDragSession && aDragSession.sourceNode) { var orientation = BookmarksMenu.getBTOrientation(aEvent, target); if (target == aDragSession.sourceNode || (target == aDragSession.sourceNode.previousSibling &&