diff --git a/mozilla/xpfe/communicator/resources/content/contentAreaDD.js b/mozilla/xpfe/communicator/resources/content/contentAreaDD.js index 5e5b6139c85..8d0a6053665 100644 --- a/mozilla/xpfe/communicator/resources/content/contentAreaDD.js +++ b/mozilla/xpfe/communicator/resources/content/contentAreaDD.js @@ -33,6 +33,7 @@ var contentAreaDNDObserver = { // under the assumption that content areas won't contain // draggable XBL, we'll ignore the drag if we're dragging XBL // anonymous content nodes, like scrollbars, etc. + // XXX bogus if (aEvent.target != aEvent.originalTarget) throw Components.results.NS_ERROR_FAILURE; @@ -68,7 +69,7 @@ var contentAreaDNDObserver = { } else { - dump("Dragging DOM node: <" + draggedNode.localName + ">\n"); + //dump("Dragging DOM node: <" + draggedNode.localName + ">\n"); if (aEvent.altKey && findParentNode(draggedNode, 'a')) return false; switch (draggedNode.localName.toUpperCase()) @@ -115,6 +116,11 @@ var contentAreaDNDObserver = { dump("Couldn't normalize selection: " + ex + "\n"); } } + else { + // Need to throw to indicate that the drag target should not + // allow drags. + throw Components.results.NS_OK; + } break; } }