From a218d166a573471d737190ae1b52f92189c25610 Mon Sep 17 00:00:00 2001 From: Edmund Wong Date: Mon, 15 Jun 2015 11:52:05 +0800 Subject: [PATCH] Bug 1171980 - Replace draggesture with dragstart, dragdrop with drop events. r=Neil a=RattyAway in a CLOSED TREE. --- suite/browser/navigator.xul | 6 +++--- suite/browser/pageinfo/pageInfo.xul | 4 ++-- suite/common/directory/directory.xul | 2 +- suite/mailnews/addrbook/abEditListDialog.xul | 2 +- suite/mailnews/addrbook/abMailListDialog.xul | 2 +- suite/mailnews/addrbook/abSelectAddressesDialog.xul | 2 +- suite/mailnews/addrbook/addressbook-panel.xul | 2 +- suite/mailnews/compose/addressingWidgetOverlay.xul | 10 +++++----- suite/mailnews/compose/messengercompose.xul | 4 ++-- suite/mailnews/folderPane.xul | 2 +- suite/mailnews/messageWindow.xul | 2 +- suite/mailnews/msgHdrViewOverlay.xul | 4 +++- suite/mailnews/tabmail.xml | 4 ++-- suite/mailnews/threadPane.xul | 2 +- 14 files changed, 25 insertions(+), 23 deletions(-) diff --git a/suite/browser/navigator.xul b/suite/browser/navigator.xul index 6be5e39414..ab69371654 100644 --- a/suite/browser/navigator.xul +++ b/suite/browser/navigator.xul @@ -274,7 +274,7 @@ onclick="if (event.button == 1) BrowserHome(event);" tooltip="home-button-tooltip" ondragstart="homeButtonObserver.onDragStart(event);" - ondragdrop="homeButtonObserver.onDrop(event);" + ondrop="homeButtonObserver.onDrop(event);" ondragenter="event.stopPropagation();" ondragexit="homeButtonObserver.onDragExit(event);" ondragover="homeButtonObserver.onDragOver(event);"/> @@ -349,7 +349,7 @@ oncommand="handleURLBarCommand('none', event);" onclick="checkForMiddleClick(this, event);" ondragover="goButtonObserver.onDragOver(event);" - ondragdrop="goButtonObserver.onDrop(event);"/> + ondrop="goButtonObserver.onDrop(event);"/> + ondrop="searchButtonObserver.onDrop(event);"/> + ondragstart="onBeginLinkDrag(event,'image-address','image-alt')"> @@ -466,7 +466,7 @@ + ondragstart="return BeginDragTree(event);"> + ondrop="DropOnAddressListTree(event);"> diff --git a/suite/mailnews/addrbook/abMailListDialog.xul b/suite/mailnews/addrbook/abMailListDialog.xul index 2761b87f40..68a500945b 100644 --- a/suite/mailnews/addrbook/abMailListDialog.xul +++ b/suite/mailnews/addrbook/abMailListDialog.xul @@ -15,7 +15,7 @@ ondialogaccept="return MailListOKButton();" onload="OnLoadNewMailList()" ondragover="DragOverAddressListTree(event);" - ondragdrop="DropOnAddressListTree(event);"> + ondrop="DropOnAddressListTree(event);"> diff --git a/suite/mailnews/addrbook/abSelectAddressesDialog.xul b/suite/mailnews/addrbook/abSelectAddressesDialog.xul index 48fe0e9c1b..3f1e9c34b2 100644 --- a/suite/mailnews/addrbook/abSelectAddressesDialog.xul +++ b/suite/mailnews/addrbook/abSelectAddressesDialog.xul @@ -71,7 +71,7 @@ diff --git a/suite/mailnews/compose/addressingWidgetOverlay.xul b/suite/mailnews/compose/addressingWidgetOverlay.xul index be670d95b2..27fd7cfd4d 100644 --- a/suite/mailnews/compose/addressingWidgetOverlay.xul +++ b/suite/mailnews/compose/addressingWidgetOverlay.xul @@ -17,13 +17,13 @@ onkeydown="awKeyDown(event, this)" onclick="awClickEmptySpace(event.originalTarget, true)" ondragover="DragAddressOverTargetControl(event);" - ondragdrop="DropAddressOverTargetControl(event);"> - + ondrop="DropAddressOverTargetControl(event);"> + - + - + - + diff --git a/suite/mailnews/compose/messengercompose.xul b/suite/mailnews/compose/messengercompose.xul index b3c9847cfb..c92bfbd1c5 100644 --- a/suite/mailnews/compose/messengercompose.xul +++ b/suite/mailnews/compose/messengercompose.xul @@ -277,7 +277,7 @@ command="cmd_sendLater"/> - + @@ -581,7 +581,7 @@ onkeypress="if (event.keyCode == 8 || event.keyCode == 46) RemoveSelectedAttachment();" onclick="AttachmentBucketClicked(event);" ondragover="nsDragAndDrop.dragOver(event, attachmentBucketObserver);" - ondragdrop="nsDragAndDrop.drop(event, attachmentBucketObserver);" + ondrop="nsDragAndDrop.drop(event, attachmentBucketObserver);" ondragexit="nsDragAndDrop.dragExit(event, attachmentBucketObserver);"/> diff --git a/suite/mailnews/folderPane.xul b/suite/mailnews/folderPane.xul index b2a8435abe..b9ee2574de 100644 --- a/suite/mailnews/folderPane.xul +++ b/suite/mailnews/folderPane.xul @@ -22,7 +22,7 @@ datasources="rdf:null" statedatasource="rdf:mailnewsfolders" flags="dont-build-content" - ondraggesture="BeginDragFolderTree(event);" + ondragstart="BeginDragFolderTree(event);" onselect="FolderPaneSelectionChange();">