Index: chrome/browser/resources/bookmark_manager/main.html |
diff --git a/chrome/browser/resources/bookmark_manager/main.html b/chrome/browser/resources/bookmark_manager/main.html |
index e3da8913206da237cf818885bba89d1d9d2b2b93..57dada9906efb4a428fe3016496101303716b7db 100644 |
--- a/chrome/browser/resources/bookmark_manager/main.html |
+++ b/chrome/browser/resources/bookmark_manager/main.html |
@@ -896,18 +896,23 @@ var dnd = { |
init: function() { |
var boundClearData = cr.bind(this.clearDragData, this); |
+ function deferredClearData() { |
+ setTimeout(boundClearData); |
+ } |
document.addEventListener('dragstart', cr.bind(this.handleDragStart, this)); |
document.addEventListener('dragenter', cr.bind(this.handleDragEnter, this)); |
document.addEventListener('dragover', cr.bind(this.handleDragOver, this)); |
document.addEventListener('dragleave', cr.bind(this.handleDragLeave, this)); |
document.addEventListener('drop', cr.bind(this.handleDrop, this)); |
- document.addEventListener('dragend', boundClearData); |
+ document.addEventListener('dragend', deferredClearData); |
+ document.addEventListener('mouseup', deferredClearData); |
chrome.experimental.bookmarkManager.onDragEnter.addListener(cr.bind( |
this.handleChromeDragEnter, this)); |
- chrome.experimental.bookmarkManager.onDragLeave.addListener(boundClearData); |
- chrome.experimental.bookmarkManager.onDrop.addListener(boundClearData); |
+ chrome.experimental.bookmarkManager.onDragLeave.addListener( |
+ deferredClearData); |
+ chrome.experimental.bookmarkManager.onDrop.addListener(deferredClearData); |
} |
}; |