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)
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.
| Assignee | ||
Updated•24 years ago
|
| Assignee | ||
Comment 1•24 years ago
|
||
odd, i can drag text to other apps, just not to the desktop.
Comment 2•24 years ago
|
||
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
| Assignee | ||
Comment 3•24 years ago
|
||
this was nhotta's change for 'utxt' in the mime mapper. not sure how, i'll
investigate.
Assignee: pchen → pinkerton
| Assignee | ||
Comment 4•24 years ago
|
||
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
Comment 5•24 years ago
|
||
Right, I forgot the other way of mapping, thanks for fixing it.
Comment 6•24 years ago
|
||
Can we use kScrapFlavorTypeText and kScrapFlavorTypeUnicode from Scap.h rather
than literal constants?
Otherwise, sr=sfraser
| Assignee | ||
Comment 7•24 years ago
|
||
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;
Comment 8•24 years ago
|
||
Even better. sr=sfraser
| Assignee | ||
Comment 9•24 years ago
|
||
in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 10•24 years ago
|
||
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 → ---
| Assignee | ||
Comment 11•24 years ago
|
||
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 ago → 24 years ago
Resolution: --- → FIXED
Comment 12•24 years ago
|
||
Open a new bug for linux and assign it to me.
You need to log in
before you can comment on or make changes to this bug.
Description
•