mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1822845: Partially revert dfd7e060998e1780e50e0a29ea3cfc767a3eadfb (bug 1779478) for causing errors when using macOS Services. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D173153
This commit is contained in:
parent
f82b21501b
commit
f534a28b58
@ -4460,7 +4460,8 @@ static CFTypeRefPtr<CFURLRef> 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;
|
||||
}
|
||||
|
@ -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]) {
|
||||
|
Loading…
Reference in New Issue
Block a user