Commit graph

23783 commits

Author SHA1 Message Date
Michael Meeks
03a8be557e bgsave: initial unit testing skeleton.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ia231d0f0f9d6ea0cd20b7ad7e28eee082530cf71
2024-04-16 16:43:52 +01:00
Michael Meeks
af749c2237 bgsave: rename parameter to background, and add setting.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ic49ec5715682b71461b49741d022fc7149aa5a13
2024-04-16 16:43:52 +01:00
Michael Meeks
2d018d38a5 bgsave: add unit testing hooks for after bgsave fork & pre exit.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I35a2ec185762138dc85db39df3e7644c60acfddc
2024-04-16 16:43:52 +01:00
Michael Meeks
5dbe4fe02f bgsave: warn and fail on unexpected receipt of .uno:Save.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I097320d8b668c1bfae9052e9edc5a4df9c7c0bcf
2024-04-16 16:43:52 +01:00
Andras Timar
d968b0af63 Use CodeQL Action v2
see https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I92253f747b8bbb9d365bb49b40402c832d63d0de
2024-04-16 16:30:34 +01:00
Michael Meeks
a8102212c6 bgsave: ensure kit processes die when their parents do.
Potentially zombie / badly behaving kits should be taken down
by the kernel, and this lets us continue our cleanup by killing
just the parent process.

Change-Id: I1e81f41cded0c67b72622f8ed88602daf427238c
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-04-16 15:07:18 +01:00
Caolán McNamara
85fc0fd841 cid#360688 COPY_INSTEAD_OF_MOVE
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I426317d77e437d024ad2fb0133cf8eaa5c91e8c6
2024-04-16 15:19:35 +02:00
Caolán McNamara
ce437ce41a cid#360691 COPY_INSTEAD_OF_MOVE
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I19c77888eabd7ea6c1186d3a3a30e6913826a641
2024-04-16 15:19:35 +02:00
Caolán McNamara
2d5797ad4b cid#360692 Uninitialized scalar variable
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ica6d5a202c1124680ae5ab01bd551fc800a74910
2024-04-16 15:19:35 +02:00
Caolán McNamara
c4a6b37460 cid#360694 silence Division or modulo by float zero
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ifac9d92f95e131f2888bef6a74435b3d6a8df829
2024-04-16 15:19:35 +02:00
Caolán McNamara
7f4fd7f556 cid#360695 Dereference after null check
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ic7d9fe40440d9a6d31b6f546270ab36acfa24d4a
2024-04-16 15:19:35 +02:00
Caolán McNamara
99f6114d63 cid#360689 Uninitialized scalar field
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I60c1c8ac794c0ae09f0a3a7b05413c886b73d44a
2024-04-16 15:19:35 +02:00
Caolán McNamara
fa994b2177 cid#360699 Uninitialized scalar field
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I578424a95b728d285924b78679d9ec23ad53972b
2024-04-16 15:19:35 +02:00
Noel Grandin
8739373a88 use erase/remove idiom to clean pollSockets
which is more efficient than repeatedly erasing in a vector.

Signed-off-by: Noel Grandin <noel.grandin@collabora.co.uk>
Change-Id: Iebd41130b37a67ffd74fa2d692b83220b1cab3f4
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-04-16 14:00:42 +01:00
Miklos Vajna
a8d4a3e859 cool#8648 clipboard: fix desktop/calc/searchbar_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ib53e71546cc1965f4a1073d507b07caef086c628
2024-04-16 13:47:11 +01:00
Miklos Vajna
5bf298243f cool#8648 clipboard: fix desktop/calc/searchbar_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I6148fdbdff6390c20e454ed9f26c6e55e774cc69
2024-04-16 13:47:11 +01:00
Miklos Vajna
e396df494c cool#8648 clipboard: fix desktop/calc/top_toolbar_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I3562d90ff20963bb77afebb8ea7430586f0b6bbd
2024-04-16 13:47:11 +01:00
Miklos Vajna
7f9c809881 cool#8648 clipboard: fix desktop/calc/undo_redo_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Idb62d8496f8ff9503654ecea1747f097463afb1b
2024-04-16 13:47:11 +01:00
Miklos Vajna
c10cc6d8b8 cool#8648 clipboard: fix desktop/impress/delete_objects_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ic499b60dde450b32464dc2b8cd959066ac5c2e7e
2024-04-16 13:47:11 +01:00
Caolán McNamara
e3d5c168c1 try adding {force: true} to leaflet-layer clicks
error is:

1) Joining a document should not trigger an invalidation
       Join after document save and modify:
     CypressError: Timed out retrying after 10050ms: `cy.click()` failed because this element:

`<div class="leaflet-layer" style="position: absolute; width: 642px; height: 484px;"></div>`

is being covered by another element:

`<div class="jsdialog ui-button-box end" id="">...</div>`

Fix this problem, or use {force: true} to disable error checking.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I8b0dde030b2aadf554db75872facb6c5c96a321c
2024-04-16 13:22:56 +02:00
Caolán McNamara
b88d518622 unwanted extra quote at end of true in json
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I66d80d415ea8e19823ccb7e6b3e8b6af1df51fbc
2024-04-16 12:04:17 +02:00
Méven Car
fb96ec89a3 WopiStorage: turn err to warning logging for PutFile
Let the error detail the error origins.

Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I67a98dfe1001fd663af464ec5ec417330d0fbfb1
2024-04-16 09:24:42 +02:00
Henry Castro
4989876cc6 config: fix font color value (Dark Theme)
Change-Id: Ib7a368c1257d69ba57e13fdcec044855826a2cdd
Signed-off-by: Henry Castro <hcastro@collabora.com>
(cherry picked from commit 67affdb956dedf35aa20a3fc3b2cb4277944d4d7)
2024-04-16 08:57:18 +02:00
Szymon Kłos
a142cd9161 css: use variable for separator color
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id9f07bac4f653c1f51bade1124cfee730247d6fd
2024-04-15 16:44:45 +02:00
Szymon Kłos
aeaba960db jsdialog: don't focus separators
Don't allow separator and spacer (placeolder which expands)
to be target of a focus when we use tab key.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I724604eb299c65e4709d3e7708f514c312188393
2024-04-15 16:44:45 +02:00
Miklos Vajna
e733accdac browser: fix merge conflict in Widget.Combobox.js
eslint now forces single quotes.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ia462bc21bc720b64caf5d535eb46e637e24b9f4a
2024-04-15 14:34:32 +02:00
Patrick Luby
aedfd864d4 Enable new paste handler on mobile platforms
At least on iOS, the new paste handler needs to send an uno message to
the LibreOffice code.

Also, completely remove fix for GitHub issue #5839. It no longer worked
and will be handled in a patch to LibreOffice's native iOS clipboard
handling code. Ultimately, GitHub issue #5839 was caused by the iOS
clipboard code's failure to never fire a "clipboard content changed"
event. So, the LibreOffice application layers never updated their
pasting enabled state.

Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: I4e198a45d863e3ecaf1dd04e85ce9d0d9b1a0894
2024-04-15 13:56:51 +02:00
Szymon Kłos
a5e20a4943 Revert "eslint: introduce strict rules"
It didn't work: prettier still used double quotes as a standard
so it was not possible to pass make check

This reverts commit 7c5c5bd47b.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic04f1591dc39bbfe522ed2b840c543ec42b3ffa3
2024-04-15 12:23:26 +02:00
Michael Meeks
0b3b27cb72 bgsave: switch to using a 'save' command to the kit.
Also pass 'autosave' status in a more conventional way.

Ideally we would split 'save' away from a ChildSession / ClientSession
and have this on DocumentBroker / Document - for the future.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I39a6caf8b17fa2fc2d940ae0d11bdc2d4da20b6c
2024-04-15 11:06:22 +01:00
Michael Meeks
76230b6b4b SigUtil now associates all commands with a session anyway.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I9098f7137d81bbc63e2449fbc8ecc53b3f1e7e7e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-04-15 11:06:22 +01:00
Pranam Lashkari
7c5c5bd47b eslint: introduce strict rules
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2cb0f61d3b159c78e67d99f163b828f60cb0f5e2
2024-04-15 11:48:17 +02:00
Darshan-upadhyay1110
a29ec03fae Fix header avatar have the same image of current UserList
Problem :
 - Open the document which have some comment from other User
 - we can see that they are same as the logged in user avatar

regression
    - this is a regression from commit e855aa6114
    - we were paasing url of user which is logged in and that should not happning for other user avatar image

Solution: - while setUserImage function pass viewId
    - this will help to identify the user Info from map
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I5ee8b41c2e58a4ba15ecf551b264f944aa926da8
2024-04-15 09:36:53 +00:00
Jaume Pujantell
705755f7b0 browser: correct avatar css on userlist
Avatars on the user list where shown too big

When userlist-dropdown was separated from userListHeader as a
JSDialog, the proper avatar-img css stopped applying.

Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I58539c492758c4ecea09d598ba7e113034078cd9
2024-04-15 11:35:08 +02:00
Darshan-upadhyay1110
0d838c26f1 Update cypress test for toolbar_spec
- Now as we hide the button for none edit modified
- we need to check for items visiblity and not the disabled attr
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ic0b1765cd12381ea359a8ff65dd88a350d9e9f33
2024-04-15 11:05:29 +02:00
Darshan-upadhyay1110
86cb7081e6 Add readonly option in JSON for all application
- Readonly option was only present in writer before this patch
- this will add option for all other Apps: Calc,Draw,Impress
There is slight issue while getting the read-only flag for MobileTopBar .
        - `app.map. isReadOnlyMode ()`: Still not work because at point of getToolItems() no permission had be setted in permission.js file for function `isReadOnly()`
        - it means this._permission still undefined when we cal `app.map. isReadOnlyMode ()` from Control.MobileTopBar.js-
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I1f5fa012218ec1025ae32e33a99363fd2ffb87ab
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
2024-04-15 11:05:29 +02:00
Darshan-upadhyay1110
7438fd546e Hide disabled elements on mobile top-toolbar
- we disabled some specific button on mobile top toolbar
- but just disabling it won't hide that from UI
- maybe it is better to not show those buttons
- it also occupies much space in top view
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I5609fb5d02bcb0590a430df73ef4568ca838c960
2024-04-15 11:05:29 +02:00
Miklos Vajna
770feebf13 cool#8648 clipboard: fix desktop/impress/undo_redo_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Iff00cdd8e1a8863c09362cefa3a2bfdf6275f837
2024-04-15 09:51:18 +01:00
Miklos Vajna
359e7eca67 cool#8648 clipboard: fix desktop/writer/editable_area_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I60028b22e570d2566a4d64b0cd70150530830852
2024-04-15 09:51:18 +01:00
Miklos Vajna
406dad2128 cool#8648 clipboard: fix desktop/writer/notebookbar_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I52851e3473532781fb03f2ac9d7c14614c2d7814
2024-04-15 09:51:18 +01:00
Miklos Vajna
1e4afce8a1 cool#8648 clipboard: fix desktop/writer/searchbar_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ia518a7f60c39109de82e0c9b38185ebe757df1cf
2024-04-15 09:51:18 +01:00
Miklos Vajna
56adf9983e cool#8648 clipboard: fix desktop/writer/table_operation_spec.js
To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ieb789f923357b3ff7749fee0202b15990491cfdc
2024-04-15 09:51:18 +01:00
Aron Budea
246e87fea2 wsd: Unconditionally compile support-key-enabled code paths
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Iec477c223f2dc75e0be8b472c8439ca9311d6aae
2024-04-14 01:23:00 +01:00
Caolán McNamara
bae0a91082 use SigUtil::setUserSignals before creating SocketPoll
The SocketPoll ctor which may, depending on COOL_WATCHDOG env variable,
want to override the SIG2 handler so set user signal handlers before
that otherwise tthat choice is overwritten

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I305570ab8becb41f0696e60908c1ca26fd9ba14a
2024-04-13 20:07:16 +01:00
Andras Timar
28e880e6b0 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1e90cd046f92f6b61e38d85ffb8499f0c2451b83
2024-04-12 19:32:23 +02:00
Shavazo
f4107de278 Translated using Weblate (Japanese)
Currently translated at 36.4% (174 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7871d370c5d0a0c28c288fdb5dbfa7b99316301a
2024-04-12 19:19:49 +02:00
Poe Mon
57e7209b23 Translated using Weblate (Japanese)
Currently translated at 75.5% (441 of 584 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4d9692ac2a3ce3dfe97b4ccf572fbb838568b461
2024-04-12 19:19:49 +02:00
Shavazo
a0eb3e9eb6 Translated using Weblate (Japanese)
Currently translated at 75.5% (441 of 584 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4d9692ac2a3ce3dfe97b4ccf572fbb838568b461
2024-04-12 19:19:49 +02:00
Shavazo
4cfbfb57eb Translated using Weblate (Japanese)
Currently translated at 35.9% (172 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia0dd0c5661e95343e4d204f32b7eaf31c30350e6
2024-04-12 19:19:49 +02:00
Poe Mon
3d993a3b61 Translated using Weblate (Japanese)
Currently translated at 35.9% (172 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia0dd0c5661e95343e4d204f32b7eaf31c30350e6
2024-04-12 19:19:49 +02:00
Poe Mon
14ebc41afc Translated using Weblate (Japanese)
Currently translated at 69.1% (404 of 584 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia98ed0e486c01bad90a83e289c5ff2f757a21d51
2024-04-12 19:19:49 +02:00