Commit f4d7cddf authored by ccarlen%netscape.com's avatar ccarlen%netscape.com
Browse files

Bug 172462 - For Mach-0, drag and drop of file onto browser doesn't work. It...

Bug 172462 - For Mach-0, drag and drop of file onto browser doesn't work. It was because some code was #ifdef'd out for lack of nsILocalFileMac. r=cls/sr=sfraser/a=dbaron
parent 9992f966
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -58,9 +58,7 @@
#include "nsXPIDLString.h"
#include "nsCRT.h"
#include "nsPrimitiveHelpers.h"
#ifndef XP_MACOSX
#include "nsILocalFileMac.h"
#endif
#include "nsWatchTask.h"

// rjc
@@ -559,11 +557,9 @@ printf("looking for data in type %s, mac flavor %ld\n", NS_STATIC_CAST(const cha
	      // we have a HFSFlavor struct in |dataBuff|. Create an nsLocalFileMac object.
	      HFSFlavor* fileData = NS_REINTERPRET_CAST(HFSFlavor*, dataBuff);
	      NS_ASSERTION ( sizeof(HFSFlavor) == dataSize, "Ooops, we realy don't have a HFSFlavor" );
#ifndef XP_MACOSX
	      nsCOMPtr<nsILocalFileMac> file;
	      if ( NS_SUCCEEDED(NS_NewLocalFileWithFSSpec(&fileData->fileSpec, PR_TRUE, getter_AddRefs(file))) )
	        genericDataWrapper = do_QueryInterface(file);
#endif
	    }
	    else {
          // we probably have some form of text. The DOM only wants LF, so convert k