diff --git a/mozilla/editor/base/nsEditorEventListeners.cpp b/mozilla/editor/base/nsEditorEventListeners.cpp index 06624bd94a8..cb063360b61 100644 --- a/mozilla/editor/base/nsEditorEventListeners.cpp +++ b/mozilla/editor/base/nsEditorEventListeners.cpp @@ -799,6 +799,10 @@ nsTextEditorDragListener::DragGesture(nsIDOMEvent* aDragEvent) { // ...figure out if a drag should be started... + // ...until we have this implemented, just eat the drag event so it + // ...doesn't leak out into the rest of the app/handlers. + aDragEvent->PreventBubble(); + return NS_OK; } diff --git a/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp b/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp index 06624bd94a8..cb063360b61 100644 --- a/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp +++ b/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp @@ -799,6 +799,10 @@ nsTextEditorDragListener::DragGesture(nsIDOMEvent* aDragEvent) { // ...figure out if a drag should be started... + // ...until we have this implemented, just eat the drag event so it + // ...doesn't leak out into the rest of the app/handlers. + aDragEvent->PreventBubble(); + return NS_OK; }