xpra icon
Bug tracker and wiki

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


Changes between Initial Version and Version 1 of Ticket #2312, comment 11


Ignore:
Timestamp:
07/26/19 09:13:51 (3 years ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2312, comment 11

    initial v1  
    1313
    1414Things to consider:
    15 * size limit: clipboard transfers are not rate-limited, so maybe we can re-use the file-transfer code for chunking them? or downsize the image if we find that the data is too big?
    16 * we don't test for the "png" clipboard feature in the browser, only for the new API availability - though in practice the end result is probably the same: trying to copy an image will fail but transferring an image as plain text is unlikely to be useful anyway
     15* the copy is asynchronous and if you alt-tab away from the browser window quickly after copying the image, chrome will fail and complain that the document is not active (as a log message only..)
     16* size limit: clipboard transfers are not rate-limited, so maybe we should re-use the file-transfer code for chunking them? or downsize the image if we find that the data is too big? (16MB is now the limit - which is pretty big for one packet!)
     17* we don't test for the "png" clipboard feature in the browser, only for the new API availability - though in practice the end result is almost the same: if copying images is not supported then it will fail but transferring an image as plain text is unlikely to be useful anyway (ie: with eog, you get the file path as text, which is not useful)
     18* some clipboard attributes should be refactored: #2370
     19* when sharing the same session with multiple clients, the type of data transferred for clipboard copying will change depending on what the client is capable of handling (should work - not tested)
     20* could add "jpeg" support, looks like chrome has this already
    1721
    1822@afarr: this should be of interest to you