Closed Bug 285640 Opened 20 years ago Closed 19 years ago

Impossible to add aditional data to a drag and drop session for stadard web page slections

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED EXPIRED

People

(Reporter: dcaruso, Unassigned)

Details

(Keywords: helpwanted)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.40607)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113


Applications which utilize drag and drop to facilitate collection building, 
often require the pressence of metadata to enable the full functionality of the 
software. 

For example, when I selection from a web page is dragged into the applition the 
source url could be used be the application to enable the dragged information 
to link back to its orginal context.

This is only on example of meta data the these applications require. The 
ability to extende the existing mozilla drag and drop information via the 
extension mechanism is essential to support addition of metdata to the drag and 
drop session. 

However after extensive devlopment attempts we discovered that it seemed 
impossible todo this.

Chrome exposes drag and drop abilites through the use of nsDragAndDrop.js
This functionality is designed to enable custom XUL components to provide drag 
and drop data. 

Although it is possible to catch drag and drop events for the whole tab 
broswer, through the use of overlays, doing so replaces the default formulation 
of drag and drop data.

It is not possible to append additional information into the existing drag and 
drop session. 

It is worth noting that unlike other events the drag and drop event doesn't 
bubble properly. That is to say, If I try to catch the event after the browser 
has created the drag and drop session, the data has already been moved to the 
os. Additional information appended is ignored. 

The only option which is left is for the extension to handle creating all drag 
and drop information itself, completely bypassing the browsers normal behavior.


A XUL mechanism needs to be available which gives extensions a chance to append 
additional data to the active drag and drop session.








Reproducible: Always

Steps to Reproduce:
1.Create a overlay which captures the ondraggesture event for the tabbrowser
2.use nsDragAndDrop.js to place some test string in the drag and drop session
3.drag and drop selected text from a web page into a application which provided 
a full dump of drag and drop data (this was done using a simple java program)


Actual Results:  
Only the test string is passed to the application. The normal broser forumalted 
information is not passed. 

Expected Results:  
I shoud have been able to add my data and then pass funtionality back to the 
browser so it would add its normal data to the drag and drop session. (note 
buble was set to true on the event)
Assignee: general → nobody
Component: General → Drag and Drop
Keywords: helpwanted
Product: Mozilla Application Suite → Core
QA Contact: general
Version: unspecified → Trunk
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.