From e3190d34f9ffe754ffe091d6ba366dcc59cb2618 Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Fri, 29 Dec 2006 00:30:19 +0000 Subject: [PATCH] Bug 365268 - Get rid of historyDNDObserver. r=sspitzer. --- .../places/content/history-panel.js | 19 ------------------- .../places/content/history-panel.xul | 1 - 2 files changed, 20 deletions(-) diff --git a/browser/components/places/content/history-panel.js b/browser/components/places/content/history-panel.js index b35d86777b72..b167fd052cce 100644 --- a/browser/components/places/content/history-panel.js +++ b/browser/components/places/content/history-panel.js @@ -141,25 +141,6 @@ function GroupBy(groupingType) searchHistory(gSearchBox.value); } -var historyDNDObserver = { - onDragStart: function (aEvent, aXferData, aDragAction) - { - var node = gHistoryTree.selectedURINode; - if (!node) - return false; - - var url = node.uri; - var title = node.title; - - var htmlString = "" + title + ""; - aXferData.data = new TransferData(); - aXferData.data.addDataForFlavour("text/unicode", url); - aXferData.data.addDataForFlavour("text/html", htmlString); - aXferData.data.addDataForFlavour("text/x-moz-url", url + "\n" + title); - return true; - } -}; - function collapseExpand() { var currentIndex = gHistoryTree.currentIndex; diff --git a/browser/components/places/content/history-panel.xul b/browser/components/places/content/history-panel.xul index 499c9909aea4..8aeef098f426 100644 --- a/browser/components/places/content/history-panel.xul +++ b/browser/components/places/content/history-panel.xul @@ -151,7 +151,6 @@ context="historyContextMenu" onkeypress="if (event.keyCode == 13) openURL(event);" hidecolumnpicker="true" - ondraggesture="if (event.originalTarget.localName == 'treechildren') nsDragAndDrop.startDrag(event, historyDNDObserver);" onclick="handleHistoryClick(event);">