Open Bug 1712122 Opened 7 months ago Updated 8 days ago

Implement Promise support in the ClipboardItem constructor

Categories

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

enhancement

Tracking

()

Webcompat Priority P2

People

(Reporter: evilpie, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(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: https://bugs.chromium.org/p/chromium/issues/detail?id=1014310.

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