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 394075 6441d136fc1c0197a8d5f1a4c423b98b2a0d5351
parent 394074 6ff47bf39febedf714dbbfbdcb6f56be7fcdcba9
child 394076 adb1f8ff7655660d862286c4949f6f606c8d0d77
push id7356
push userryanvm@gmail.com
push dateThu, 25 May 2017 15:03:58 +0000
treeherdermozilla-beta@38c9c1ad194a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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;