Closed Bug 81028 Opened 24 years ago Closed 24 years ago

Can't drag anything to desktop

Categories

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

PowerPC
Linux
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: mikepinkerton, Assigned: mikepinkerton)

Details

(Keywords: regression)

- mac build 5/15/01 - drag any text or link to desktop expected: - creates clipping or shortcut actual: - springs back we can't seem to get this to work on two consecutive days, can we? doesn't work in browser or editor.
odd, i can drag text to other apps, just not to the desktop.
Things would get boring if they worked too often. This works on Windows, IE icon and all. Send me a mac, yada yada -> pchen
Assignee: blakeross → pchen
this was nhotta's change for 'utxt' in the mime mapper. not sure how, i'll investigate.
Assignee: pchen → pinkerton
oops, we forgot a place in the mime mapper. forgot to patch MapMacOSTypeToMimeType. Index: mozilla/widget/src/mac/nsMimeMapper.cpp =================================================================== RCS file: /m/pub/mozilla/widget/src/mac/nsMimeMapper.cpp,v retrieving revision 1.21 diff -u -2 -r1.21 nsMimeMapper.cpp --- nsMimeMapper.cpp 2001/05/15 03:05:26 1.21 +++ nsMimeMapper.cpp 2001/05/15 21:48:35 @@ -123,4 +123,5 @@ case 'TEXT': outMimeStr = kTextMime; break; + case 'utxt': outMimeStr = kUnicodeMime; break; case flavorTypeHFS: outMimeStr = kFileMime; break; can i get an sr?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
Right, I forgot the other way of mapping, thanks for fixing it.
Can we use kScrapFlavorTypeText and kScrapFlavorTypeUnicode from Scap.h rather than literal constants? Otherwise, sr=sfraser
new diff, replacing all the 4-char codes with the constants. Index: mozilla/widget/src/mac/nsMimeMapper.cpp =================================================================== RCS file: /m/pub/mozilla/widget/src/mac/nsMimeMapper.cpp,v retrieving revision 1.21 diff -u -2 -r1.21 nsMimeMapper.cpp --- nsMimeMapper.cpp 2001/05/15 03:05:26 1.21 +++ nsMimeMapper.cpp 2001/05/15 22:12:45 @@ -79,15 +79,15 @@ if ( !format ) { if ( PL_strcmp(aMimeStr, kTextMime) == 0 ) - format = 'TEXT'; + format = kScrapFlavorTypeText; else if ( PL_strcmp(aMimeStr, kFileMime) == 0 ) format = flavorTypeHFS; else if ( PL_strcmp(aMimeStr, kPNGImageMime) == 0 ) - format = 'PICT'; + format = kScrapFlavorTypePicture; else if ( PL_strcmp(aMimeStr, kJPEGImageMime) == 0 ) - format = 'PICT'; + format = kScrapFlavorTypePicture; else if ( PL_strcmp(aMimeStr, kGIFImageMime) == 0 ) - format = 'PICT'; + format = kScrapFlavorTypePicture; else if ( PL_strcmp(aMimeStr, kUnicodeMime) == 0 ) - format = 'utxt'; + format = kScrapFlavorTypeUnicode; else if ( inAddIfNotPresent ) { @@ -122,5 +122,6 @@ switch ( inMacType ) { - case 'TEXT': outMimeStr = kTextMime; break; + case kScrapFlavorTypeText: outMimeStr = kTextMime; break; + case kScrapFlavorTypeUnicode: outMimeStr = kUnicodeMime; break; case flavorTypeHFS: outMimeStr = kFileMime; break;
Even better. sr=sfraser
in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified fixed mac build 2001022405 Verified fixed w98 build 2001052404 Oops, see this behavior on linux build 2001052310, changing OS and reopening
Status: RESOLVED → REOPENED
OS: Mac System 9.x → Linux
Resolution: FIXED → ---
this was a mac-only bug, fix was mac-only. needs verification on mac. i don't think linux ever had this capability.
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Open a new bug for linux and assign it to me.
Verifying will open new bug for linux ;-)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.