libreoffice-online/kit
Miklos Vajna 621ec809b3 cool#9219 kit: fix setclipboard command with HTML payload
Have two COOL servers, copy on one instance, paste an on other instance,
nothing happens on Ctrl-V.

It appears the JS code in Clipboard.js
_dataTransferDownloadAndPasteAsync() gets the correct HTML, but when it
tries to contact the "copy" server for the underlying full clipboard,
some security policy prevents the JS code from doing that. Which means
1) perhaps we should do that HTTP fetch on the server, not in JS and 2)
the fallback code should at least work via normal HTML.

Fix 2) by extending ChildSession::setClipboard() to recognize if the
data has the typical HTML header, and only start the usual parsing in
case the data we got is not bare HTML.

The 1) still needs fixing.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I55a102c2a39d21ac898f82041760a220e46784cb
2024-06-06 09:34:07 +01:00
..
ChildSession.cpp cool#9219 kit: fix setclipboard command with HTML payload 2024-06-06 09:34:07 +01:00
ChildSession.hpp bgsave: change statusindicator protocol message to 'progress' + JSON. 2024-05-06 20:28:08 +01:00
Delta.hpp wsd: reduce directives for unused variable supression 2024-03-09 12:37:19 -05:00
DeltaSimd.c fix build on !ENABLE_SIMD branch 2024-03-10 20:06:53 +00:00
DeltaSimd.h
DummyLibreOfficeKit.cpp
DummyLibreOfficeKit.hpp
forkit-main.cpp
ForKit.cpp Logging: annotate WebSocket, Admin and cleanup Forkit. 2024-05-14 18:37:52 +02:00
Kit.cpp wsd: always exit Kit when unloading 2024-06-04 16:27:14 +02:00
Kit.hpp bgsave: disable bgsave if we get an error: 2024-05-18 18:57:54 +01:00
KitHelper.hpp
KitQueue.cpp cool#9145 - KitQueue: re-work _tileQueue to use TileDesc. 2024-05-23 19:50:09 +01:00
KitQueue.hpp cool#9145 - KitQueue: re-work _tileQueue to use TileDesc. 2024-05-23 19:50:09 +01:00
KitWebSocket.cpp bgsave: detect crashed bgsave process, and/or early termination. 2024-05-18 18:57:54 +01:00
KitWebSocket.hpp bgsave: detect crashed bgsave process, and/or early termination. 2024-05-18 18:57:54 +01:00
SetupKitEnvironment.hpp reduce uses of MOBILEAPP on some files 2024-03-20 09:13:00 +01:00
StateRecorder.hpp
TestStubs.cpp
Watermark.hpp