Bug 1358755 - Fix dragging of files from Firefox to third-party file management applications on macOS. r=mstange, a=gchang
authorStephen A Pohl <spohl.mozilla.bugs@gmail.com>
Tue, 23 May 2017 00:23:23 -0400
changeset 585401 6441d136fc1c0197a8d5f1a4c423b98b2a0d5351
parent 585400 6ff47bf39febedf714dbbfbdcb6f56be7fcdcba9
child 585402 adb1f8ff7655660d862286c4949f6f606c8d0d77
push id61106
push userbmo:dkeeler@mozilla.com
push dateFri, 26 May 2017 21:26:31 +0000
reviewersmstange, gchang
bugs1358755
milestone54.0
Bug 1358755 - Fix dragging of files from Firefox to third-party file management applications on macOS. r=mstange, a=gchang
widget/cocoa/nsClipboard.mm
--- a/widget/cocoa/nsClipboard.mm
+++ b/widget/cocoa/nsClipboard.mm
@@ -594,16 +594,18 @@ nsClipboard::PasteboardDictFromTransfera
 
       NSString* str = nsCocoaUtils::ToNSString(fileURI);
       NSArray* fileList = [NSArray arrayWithObjects:str, nil];
       [pasteboardOutputDict setObject:fileList forKey:NSFilenamesPboardType];
     }
     else if (flavorStr.EqualsLiteral(kFilePromiseMime)) {
       [pasteboardOutputDict setObject:[NSArray arrayWithObject:@""]
                                forKey:(NSString*)kPasteboardTypeFileURLPromise];
+      [pasteboardOutputDict setObject:[NSArray arrayWithObject:@""]
+                               forKey:(NSString*)kPasteboardTypeFilePromiseContent];
     }
     else if (flavorStr.EqualsLiteral(kURLMime)) {
       uint32_t len = 0;
       nsCOMPtr<nsISupports> genericURL;
       rv = aTransferable->GetTransferData(flavorStr, getter_AddRefs(genericURL), &len);
       nsCOMPtr<nsISupportsString> urlObject(do_QueryInterface(genericURL));
 
       nsAutoString url;