Closed Bug 172044 Opened 22 years ago Closed 22 years ago

Content area needs to handle the 'url ' drag flavor

Categories

(Camino Graveyard :: Drag & Drop, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Camino1.5

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

References

Details

Attachments

(2 files, 1 obsolete file)

To enable dragging of urls from the content into the dock, and to handle the
dropping links from some apps (e.g. Sherlock) in the content, we need to handle
the 'url ' and 'urld' flavors.
This should also fix the receiving of .webloc files from the Finder (bug 165303)
Blocks: 165303
Target Milestone: --- → Chimera1.1
I'll keep hacking.
Assignee: pinkerton → sfraser
*** Bug 165303 has been marked as a duplicate of this bug. ***
This patch adds XP flavors for URL and description, which is preferable to
mucking with the moz-url data which has url and title separated by a linebreak.
Note that when dragging an image, we add the image URL to the drag so that you
can drag images between browser windows.

This patch depends on the next one...
Attachment #101646 - Attachment is obsolete: true
This patch adds mappings of the OS types 'url ' and 'urld' to kURLDataMime and
kURLDescriptionMime, and the conversion between OS string data and unicode for
these types.
Reviews please, Mike.

These changes fix the following:
* Can drag a url to the dock to create a dock item for the url
* Can drag a .webloc file from the Finder into the browser, and have it load
  the url (rather than trying to load the file)
* Can drag an iamge from one browser window to another
* Can drag items from 'eBay' search results in Sherlock to the browser
Status: NEW → ASSIGNED
looks good to me. r=pink on both.
just a thought, should we try to get the xul dnd code throughout mozilla to use
the new flavors and obsolete the url/ntitle flavor?
> just a thought, should we try to get the xul dnd code throughout mozilla to use
> the new flavors and obsolete the url/ntitle flavor?

That would be ideal, but might require hacking a bunch of front-ends. Doesn't
chimera mess with url\ntitle drag data? I think 4.x also did, so there may be
compatibility issues here. I'd recommend deprecating the moz-url flavor, but
still sending it, and handling it on recieve.
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified items listed in comment 7 are functioning properly. Tested with the
2003-01-09-04 NB under 10.2.3. Marking verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: