Closed Bug 224717 Opened 22 years ago Closed 20 years ago

doesn't accept drag/drops of URLs (only favorites files & text which happen to be urls)

Categories

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

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED EXPIRED

People

(Reporter: tsm, Assigned: bugzilla)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Mozilla drag and drop doesn't accept the UniformResourceLocator (CFSTR_SHELLURL) drag and drop type under windows (at least windows XP). It does accept unicode text which happens to be a url, and favorites files which contain urls. I've attached a test C# application, with source, which demonstrates this: click and drag from the "URL alone" label to drag & drop a UniformResourceLocator alone, and click and drag the "URL with unicode text" label to also have the unicode text filled in. Mozilla, however, does *generate* the UniformResourceLocator type (you can verify this by dropping a url from mozilla on top of ClipSpy, at http://home.inreach.com/mdunn/code/ClipSpy/clipspy.html). For the moment, I have a workaround in our program that puts unicode text in with the url along with the proper UniformResourceLocator, but that may have to change once we start allowing people to drag & drop text with links as well (which would more or less cripple people trying to use mozilla with our program). Reproducible: Always Steps to Reproduce: 1. run the DnD URL text.exe program I attached 2. click down on the "URL alone" label, drag, and release over a mozilla content window. Actual Results: The cursor did turn to the D&D "copy" icon, but nothing happened on release. Expected Results: Gone to the dragged web page. To see that result, click down and drag from the "URL with unicode text" label.
Oh, I forgot to mention: I did try to debug this a bit on the mozilla end. It seems that nsClipboard::GetFormat, in widget/src/windows/nsClipboard.cpp tries to translate text/x-moz-url to CF_UNICODE_TEXT, where it seems perhaps it ought to use CFSTR_SHELLURL. Bug 71786, comment 16 mentions this change, but the later discussion seems to imply that other things would also have to be changed for this to work.
.
Assignee: jag → blake
Component: XP Toolkit/Widgets → XP Apps: Drag and Drop
QA Contact: jrgmorrison → pmac
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: 20 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: