Open Bug 1712122 Opened 1 year ago Updated 14 days ago

Implement Promise support in the ClipboardItem constructor


(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)




Webcompat Priority P2


(Reporter: evilpie, Assigned: edgar)


(Blocks 2 open bugs)



(1 obsolete file)

We currently don't support Promises in the ClipboardItem constructor like Chrome. Safari does support it and it's specified in the spec.

Before shipping we need to either implement this or change the spec, because this is apparently causing issues: bug 1619947 comment 25.

Blocks: 1688865

I am pretty sure the ref-counting and CC handling is totally wrong, because it's missing for
mPromises and mResolvedEntries.

I added mResolvedEntries because I remembered some previous discussion that MozPromise can't
hold something alive? I don't actually remember the details.

It does pass all the wpt clipboard-apis tests. However those don't include anything for Promises
in the constructor.

Hey Nika, would you mind taking a look at the CC handling etc. in the patch?

Flags: needinfo?(nika)
Assignee: nobody → evilpies
Flags: needinfo?(nika)
Assignee: evilpies → nobody
Attachment #9223146 - Attachment is obsolete: true
Type: task → enhancement

Changing severity to N/A for enhancement

Severity: -- → N/A

Seems like Chromium is finally working on this feature thanks to Microsoft:

Webcompat Priority: --- → ?
Webcompat Priority: ? → P3
Webcompat Priority: P3 → P2
Assignee: nobody → echen
You need to log in before you can comment on or make changes to this bug.