Closed Bug 1610209 Opened 5 years ago Closed 5 years ago

Cannot write to clipboard in an async function without having the dom.events.testing.asyncClipboard enabled

Categories

(Core :: DOM: Events, defect, P2)

72 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1597857

People

(Reporter: rkaposta, Assigned: edgar)

References

Details

Attachments

(1 file)

Attached file clipboard.html (deleted) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Called an async function that tries to write to the clipboard.

dom.event.clipboardevents.enabled true
dom.events.asyncClipboard true
dom.events.asyncClipboard.dataTransfer false
dom.events.testing.asyncClipboard false

The problem does not occur when the 'dom.events.testing.asyncClipboard' is set to true.

The problem can be reproduced by opening the attached clipboard.html and clicking on the text. If successful a 'CAT' text should be in the clipboard.

Actual results:

The content was not copied to the clipboard, instead the following error message appeared on the console:

uncaught exception: undefined

Expected results:

The content should have been copied to the clipboard.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → DOM: Events
Product: Firefox → Core
Depends on: 1597857
Priority: -- → P2

Closing in a favor of bug 1597857.

Assignee: nobody → echen
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: