diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm index 141dbac3615c..dd9d6fdd8b66 100644 --- a/widget/cocoa/nsChildView.mm +++ b/widget/cocoa/nsChildView.mm @@ -4460,7 +4460,8 @@ static CFTypeRefPtr GetPasteLocation(NSPasteboard* aPasteboard) { nsAutoRetainCocoaObject kungFuDeathGrip(self); // Make sure that the service will accept strings or HTML. - if (![types containsObject:[UTIHelper stringFromPboardType:NSPasteboardTypeString]] && + if (![types containsObject:[UTIHelper stringFromPboardType:NSStringPboardType]] && + ![types containsObject:[UTIHelper stringFromPboardType:NSPasteboardTypeString]] && ![types containsObject:[UTIHelper stringFromPboardType:NSPasteboardTypeHTML]]) { return NO; } diff --git a/widget/cocoa/nsCocoaUtils.mm b/widget/cocoa/nsCocoaUtils.mm index 4f46227d32af..b6eaa5dc31a8 100644 --- a/widget/cocoa/nsCocoaUtils.mm +++ b/widget/cocoa/nsCocoaUtils.mm @@ -95,6 +95,7 @@ NSString* const kMozFileUrlsPboardType = @"org.mozilla.file-urls"; [aType isEqualToString:(NSString*)kPasteboardTypeFileURLPromise] || [aType isEqualToString:(NSString*)kPasteboardTypeFilePromiseContent] || [aType isEqualToString:(NSString*)kUTTypeFileURL] || + [aType isEqualToString:NSStringPboardType] || [aType isEqualToString:NSPasteboardTypeString] || [aType isEqualToString:NSPasteboardTypeHTML] || [aType isEqualToString:NSPasteboardTypeRTF] || [aType isEqualToString:NSPasteboardTypeTIFF] || [aType isEqualToString:NSPasteboardTypePNG]) {