Closed Bug 285293 Opened 20 years ago Closed 20 years ago

drag and drop save of attachment ignores multi-select

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 270292

People

(Reporter: subscriber, Assigned: mscott)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1

If you select multiple attachments in an email and attempt to drag and drop them
to a folder, it only saves the attachment you clicked directly on when
initiating the drag, rather than all selected attachments, as expected.

Reproducible: Always
Currently, drag and drop of multiple selection is not handled in onDragStart().
The function creates and passes data structure only for event target, which is
attached file drag is started on. 
http://lxr.mozilla.org/seamonkey/source/mail/base/content/msgHdrViewOverlay.js#1514


At a glance, I thought this could be solved by creating TransferDataSet object
(I attached experimental implementation). Interestingly enough, this also works
only for single selection.

When drag and drop is being doen, TransferData object is converted into
nsDataObj, which implements native interface IDataObject. If there are more
than one objects, they are wrapped with nsDataObjCollection object, which also
implements IDataObject. However, implementation of nsDataObjCollection might be
not delicate enough to cover drag and drop of multiple files.

I'd like to do more research on this. Any advise or comment would be
appreciated.
Since the suite does not currently offer multiple-selection of attachments, this 
is a TB-only bug.  Could not find a dupe; reproduced with TB 1.0+0309, Win2K.

Reducing severity, since the workaround is trivial: just drag them one at a 
time.

xref bug 142413 -- possibly related.
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → Windows 2000

*** This bug has been marked as a duplicate of 270292 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: