xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 4 years ago

Closed 4 years ago

Last modified 9 months ago

#1689 closed defect (fixed)

firefox does not emit clipboard events

Reported by: Antoine Martin Owned by: alas
Priority: major Milestone: 2.2
Component: html5 Version: trunk
Keywords: Cc:


Splitting this from ticket:1461#comment:15.
Reproducible with Firefox on any platform.

This sounds like Capturing a Paste Event in Firefox: The paste event has been supported in major browsers for some time now, but interestingly Firefox doesn’t trigger the event unless the user’s cursor is currently focussed in an editable region.

Unfortunately, the Firefox bug is meant to have been fixed already and sprinkling contenteditable=true in every div doesn't make any difference. Neither does listening for clipboard events on all contenteditable elements as suggested here: https://stackoverflow.com/a/19269040/428751.
More answers here: JavaScript get clipboard data on paste event (Cross browser)

Attachments (1)

test.html (7.7 KB) - added by Antoine Martin 4 years ago.
page similar to the client, clipboard works here…

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by Antoine Martin

Attachment: test.html added

page similar to the client, clipboard works here...

comment:1 Changed 4 years ago by Antoine Martin

Owner: changed from Antoine Martin to alas

r17537 fixes this by not using jquery for keyboard events, which somehow fixes the clipboard with Firefox (yes, it did take me a while to figure that out)

Maybe we should try to not use jquery quite so much: #1712.

A few improvements were made along the way:

  • r17531: remove redundant code
  • r17530: better logging and redirection
  • r17528 + r17529: refactoring, move javascript functions to common location, split client intialization into more manageable functions
  • r17527 fix audio api warnings

comment:2 Changed 4 years ago by Antoine Martin

Milestone: 3.02.2

comment:3 Changed 4 years ago by Antoine Martin

Resolution: fixed
Status: newclosed

comment:4 Changed 9 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1689

Note: See TracTickets for help on using tickets.