Closed Bug 1762392 Opened 3 years ago Closed 2 years ago

Add Cocoa platform support for paste files

Categories

(Core :: Widget: Cocoa, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(3 files, 2 obsolete files)

GTK already supports this. This bug is filed for making non-e10s work. For content process we also need bug 1308007 get fixed.

So that we could reuse them in Clipboard code.

Blocks: 1699743
Attachment #9270255 - Attachment description: Bug 1762392 - Part 1: Move some utility functions for NSPasteboardItem to nsCocoaUtils; → Bug 1762392 - Part 1: Put utility functions for NSPasteboardItem to nsCocoaUtils;
Attachment #9270256 - Attachment description: Bug 1762392 - Part 2: Add Cocoa platform support for paste file; → Bug 1762392 - Part 3: Make Clipboard share the same pasteboard code with DragService;

The severity field is not set for this bug.
:spohl, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Severity: -- → S3
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P3

It would be nice to have this so we can enable pasting files on all platforms.

Type: defect → enhancement

My patches tries to share the code between dnd and clipboard as much as possible, i.e. get data from NSPasteboardItem, but realized that we cannot do that for string data as we currently use the NSPasteboard::stringForType which returns concatenation of the strings from all the items. So I need to revise my patches, I will try to do that later this week or early next week.

Flags: needinfo?(echen)
Attachment #9270255 - Attachment description: Bug 1762392 - Part 1: Put utility functions for NSPasteboardItem to nsCocoaUtils; → Bug 1762392 - Part 2: Put utility functions for NSPasteboardItem to nsCocoaUtils; r?spohl
Attachment #9270342 - Attachment description: Bug 1762392 - Part 4: Make Clipboard support pasting file; → Bug 1762392 - Part 3: Make Clipboard support pasting file; r?spohl

Apologies for the delay here, this fell off my radar. Setting n-i.

Flags: needinfo?(spohl.mozilla.bugs)
Attachment #9270338 - Attachment is obsolete: true
Attachment #9270256 - Attachment is obsolete: true
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c8058ade75fd Part 1: Move pasteboard type declarations to nsCocoaUtils; r=spohl https://hg.mozilla.org/integration/autoland/rev/2d802e66f41a Part 2: Put utility functions for NSPasteboardItem to nsCocoaUtils; r=spohl https://hg.mozilla.org/integration/autoland/rev/4785807571f3 Part 3: Make Clipboard support pasting file; r=spohl
Flags: needinfo?(spohl.mozilla.bugs)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: