Commit Graph

23246 Commits (56a30406d4735028c2bde0c52d4826f754abe5b9)

Author SHA1 Message Date
Andras Timar 56a30406d4
Update SECURITY.md
Versions
2024-03-18 06:37:02 +01:00
Gökay Şatır c127d54919 Send permission parameter to wopi parameters.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I0a779e7f27196ca987b11a619c9b0ee27a87bb4a
2024-03-16 07:28:30 +03:00
Gökay Şatır 27670275ab Send isAllowChangeComments flag to ChildSession.
We also set the variable on the core side in order to allow saving edited documents.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I9ba97daca7013bf26b25fff785f175e3fb213dfb
2024-03-16 07:28:30 +03:00
Gökay Şatır ea7c9c9fe6 Check session->isReadOnly along with getUserCanWrite.
This allows permission=readonly URL parameter.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I02df9723cf90c961be2e8ce579304355420d0d11
2024-03-16 07:28:30 +03:00
Gökay Şatır b7454abdbf Provide longpress timer for IOS devices.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ifaf76e198f0357e669c9966a185b6ab506e56f49
2024-03-15 20:46:20 +03:00
Gökay Şatır dfc523f15a Merge onContextMenu and onLongPress events.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Icd4452a30479591035282a789ad6c9ae742c1b0b
2024-03-15 20:46:20 +03:00
Méven Car 5a2f290803 test/data: Add a ppsx file
Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: Ic8eae566cc137400b356e4e99c4f93f9278dc83e
2024-03-15 18:25:53 +01:00
Méven Car 31c512ff66 Impress: Allow to autostart in presentation mode
This is implemented in two cases:
 * using a request parameter '&startPresentation=true'
 * for ppsx/pps for which the backend sends a startPresentation
   stateChange event. This can be overridden passing
'&startPresentation=false' to allow editing the file.

The presentation can only start in present-in-window mode due to browser
gating fullscreen by user activation.

Refactor SlideShow._onFullScreen to better handle the requestFullscreen permission restriction failing case.
Also clean up old references to old restricted implementations.

Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I98fcb1a7da170fa1c6a7de75c680259163233c9d
2024-03-15 18:25:53 +01:00
Neil Guertin 8a788347f2 Fix &debug=true and &randomUser=true url parameters
Move debug toggle to after docloaded message
Move sidebar toggle even later than that

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ib72b5ef4c2c31f7707a384b2d819d5cde57a796d
2024-03-15 11:51:27 -04:00
Pranam Lashkari 7e51e5544c annotation: fix scaled comment positioning
problem:
when using display scaling/zooming clicking on comment may cause
overlapping on comments if the previous comment from clicked comment is long

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6e9eec3ba5c3fb9f871ce42bb0a554d7e2cc3c5e
2024-03-15 11:43:12 +00:00
Michael Meeks 3b38327f55 Only create Unit-test SocketPoll when used.
We don't need a SocketPoll and its wake-pipes before we
run a test - obviously, and we should close it when we
fork a new test.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I56875b66ce2ba141baacdd70c973e9e9af02d1d0
2024-03-15 11:41:23 +00:00
Michael Meeks d6c49d4183 Cleanup ForKit's SocketPoll after forking.
Don't leave the wake-pipes lying around; it can't do any good
to have these cloned, and shared between child processes.

Change-Id: Ieb6c5c8fdd1285bc514116a1e00de76bcc5a1773
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-03-15 11:41:23 +00:00
Michael Meeks e9ef062eee Set thread name early & cleanup thread_locals.
On fork a thread_local variable simply inherits the parents'
value - so clearing the cached thread_id helps to make
logging more accurate.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ib03d2605489291589854caa10940fd7c11caea36
2024-03-15 11:41:23 +00:00
Michael Meeks 2e784c0a03 Socket: add API to close all sockets.
This may not look hyper-elegant, but using ~Socket to do this
calls 'shutdown' first on the sockets, which closes the parent's
duplicate of the socket very unhelpfully. So close instead.

Don't touch and thus COW memory. We will leave the Socket Poll
around un-used, and un-polling from eg. the ForKit in the Kit
process.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I1328dee0278ce39350194c617acffa114887d523
2024-03-15 11:41:23 +00:00
Michael Meeks f21b4854ee Generalize DirectoryCounter and add FDCounter class.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I6f51d8eeafcafcd8fe8a70a4e9f734e8c002eed6
2024-03-15 11:41:23 +00:00
Jaume Pujantell d77b0b6bd2 android: add support for c++20 and std::filesystem
Android build fails due to use of std::filesystem and
c++20 features like string::starts_with.

cmake requires c++2a flag
std::filesystem requires ndk 22+

Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: Ibba1e5e76a32ba5526d9d7111b810a650f372a02
2024-03-15 12:23:56 +01:00
Bayram Çiçek 93f3bcff82 use getentropy() for BSD systems
- instead of using /dev/[u]random devices, use
getentropy() to make direct system calls
if the system is a BSD.

- if getentropy() fails, we need to fall back to
"/dev/[u]random" approach.

Signed-off-by: Bayram Çiçek <bayram.cicek@libreoffice.org>
Change-Id: Id6a2629c06d641eb4e7cf3991de4036d2f7b346e
2024-03-15 09:29:10 +00:00
Pranam Lashkari 77f3361654 cypress: fixed tests after textbox/shape svgs updates
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I0fd693c373dd996ed926f65b7df64a531048476d
2024-03-15 09:23:27 +00:00
Pranam Lashkari 714b24c6ae canvas:svg: update inner text area of shape/textbox based on input
problem:
before this patch innert textarea svg was not updated after changing text,
it was static based on first selection of textbox/shape,
to update the textarea we needed to unselect and reselect shape/textbox

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I11ceaf76867cecf5a356149d2072181e9f10b86e
2024-03-15 09:23:27 +00:00
Miklos Vajna 7d95971b19 clientnb: missing include
<timar> net/clientnb.cpp:117:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
<timar>   117 |     std::shared_ptr<WebSocket> getWebSocket()
<timar>       |          ^~~~~~~~~~
<timar> net/clientnb.cpp:38:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?

IWYU agrees it's a missing include even if this builds for me by
accident.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I367ef3efcf2bdaf1b69c4bf21ef168e03807365c
2024-03-15 11:49:09 +10:30
Andras Timar ea4234cfda remove executable bit from SVGs
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id83fbfeb2880ef9208f45b8c2dcb16753c7307fe
2024-03-14 17:10:35 +01:00
Skyler Grey e385a7b53b Stop following anyone when you start typing
When you are following someone and start typing, it's a pretty good
indication that you don't want to be following that person, particularly
because if they edit you will then be jumped over to where they are

We also need to stop unfollowAll from always rerendering the user list,
as when we rerendered on every keypress there was a noticable
performance degredation. Instead, we can make it only rerender when
we're following someone, which is a lot better.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I110ca74859b7cee03c6a58c87d3975275f29760d
2024-03-14 11:44:52 +00:00
Szymon Kłos e8f61f02bb remove-w2ui: replace w2overlay with jQuery tooltip for user join
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic6db4451222ea2d409e421322a67648c2d9c7989
2024-03-14 08:35:15 +01:00
Szymon Kłos 087380bf2d remove-w2ui: replace w2overlay with info modal for undo conflict
so it will be also visible in notebookbar mode

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia311e3bff119b202b08b6ba04f75ad795d8a735c
2024-03-14 08:35:15 +01:00
Szymon Kłos edca8edb77 notebookbar: remove some unused rules
in the past when JSON was generated from core it was needed...

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I862bd405f17bd102d9772b0f806aec8bfcca4ac8
2024-03-14 08:35:15 +01:00
Szymon Kłos 240c6754b4 remove-w2ui: reuse MenuButton for insert table popup
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8dbeca30842d7bc8898f7e8146b0f279b9d0054a
2024-03-14 08:35:15 +01:00
Szymon Kłos 7ffa56d711 remove-w2ui: reuse MenuButton for insert shape popup
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib18fad0242d55aa01ef1f2c5e49105eb6d6627f9
2024-03-14 08:35:15 +01:00
Szymon Kłos aa259d7337 cypress: disable mobile, idle, multi tests for now
so we will check desktop only which can pass

This change should be reverted after we fix problems

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id34bf6446c7ea56fc8dd8ddf750abafd693c0aa1
2024-03-13 18:49:07 +01:00
Szymon Kłos ba8a3fd60b cypress: disable failing draw/pdf_page_up_down_spec.js
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia795fae9e852453d47f8afeb33150041fb21eb4b
2024-03-13 18:49:07 +01:00
Szymon Kłos 10950c599e cypress: disable some failing svg checks
It fails on triggerNewSVGForShapeInTheCenter()

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2693ea645a4103ecfd51db0405022764a0130d5a
2024-03-13 18:49:07 +01:00
Szymon Kłos e1f1003599 jsdialog: correctly enable/disable widgets
this fixes cypress test: desktop/impress/jsdialog_spec.js

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8e80b1e3721394e18e21902ad7794b526f5da7a5
2024-03-13 18:49:07 +01:00
Szymon Kłos f71b03484b cypress: fix insert image tests
`<div class="unotoolbutton notebookbar ui-content unospan-home-insert-graphic unoInsertGraphic no-label" tabindex="-1" id="home-insert-graphic" title="Image">...</div>`

is being covered by another element:

`<div class="w2ui-scroll-right" style="display: block;"></div>`

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idc5aa7b6ca1c7c9a601b07e60ba76d980dc07ae2
2024-03-13 18:49:07 +01:00
Neil Guertin be851931ea Cypress: log helper function start and end
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I61812b730fa58ee1c2969f4ded84b08f5eca981a
2024-03-13 13:21:20 -04:00
Henry Castro 5ac45caea0 browser: fix prettier wrong parameters
Change-Id: I40cece8d48b01b8a6dc1cbf91699a5ef436b3631
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro db8fee7d9b browser: create 'prettier-write' rule
Change-Id: I3f326da9428e4c8c5558912004446725f6b32772
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro 20462e576f browser: create prettier rule
Change-Id: I8ea727458c450a14880b06971d48c58edd0961c2
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro 71023d9ba7 browser: simplify 'prettier' call
Change-Id: I0e2af38d70e30dea42187fa2fb960da5328af857
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro e2103b241a browser: create eslint rule
Change-Id: I65766ffdebf5c3148cf13507f6ee9c1980c4bb79
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro 5d8e9983a9 browser: simplify eslint call
Change-Id: Ic88985555934f0d6274b9b87a298cf4769594cd1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro 8a14ca766d browser: fix format style
[error] ===================================================================
[error] ---
[error] +++
[error] @@ -1635,5 +1635,6 @@
[error]  		}
[error]
[error] -		for (var pmKey in partMode) { // no keys method
[error] +		for (var pmKey in partMode) {
[error] +			// no keys method
[error]  			var partTileQueue = partMode[pmKey];
[error]  			var part = partTileQueue[0].part;

Change-Id: I3dad1053203c22c48b0c60ede9b7e83265f183bd
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro 76d33f1182 config: add 'prettier' command before bundeling process
Execute the 'prettier' command to check format code style.

Change-Id: I93e4a57e03d26627caa3b2c52ae44669a8723267
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro ec40680f9a browser: admin: ignore eslint transpilation code
The *.ts files in admin are transpiled typescript to *.js
so ignore the file to eslint again.

Change-Id: Icb5edbcc9d782562886c17453921979fd2dbdd2e
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro f6895dcddf config: fix eslint 'prettier' package extension
config setup: builddir != srcdir

------------------------------------------------------------

Oops! Something went wrong! :(

ESLint: 7.0.0

Error: Cannot read config file: ../browser/.eslintrc
Error: ENOENT: no such file or directory, open '../browser/.eslintrc'

Change-Id: I7900d9715b9a918c2f978aae63522a8c62956278
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Andras Timar b969b98007 rpm: BuildRequires
cppunit-devel is not required for release build
nodejs is required, but may be provided by other means,
not by an rpm package.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If761ef746559c9e002817f7a102191f5087001e2
2024-03-12 16:47:38 +01:00
Andras Timar 47a94b9b56 test android CI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I98ec8b2a052e7881a5f82e43d973ec6b3506d20f
2024-03-12 16:46:36 +01:00
Andras Timar f2d30c60e3 Update Helm Chart with new release 23.05.9.4
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9bcf32e0422a886b790d5836fb4bf1f5d68090ee
2024-03-12 16:46:36 +01:00
Darshan-upadhyay1110 17c6f4241c Do not hide or show elements which are force to be hidden in mobile view
- We specifically hide some section or elements in mobile view
- if we go level up or level down in mobile view, we should not change the state of those elements which already hidden using css rules
- this patch will cover that part of issue where we do not consider elements which are hidden by css rules
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I7ffd83c5b74987f74b7e327fd13775a81d02120d
2024-03-12 15:58:59 +01:00
Darshan-upadhyay1110 9c0e74be84 Fix image path for base spin field icons
- image path was wrongly assigned
- setImage method will do the work to set image path
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I765f0049d7d607926529df38a202b9ec923584b1
2024-03-12 15:58:59 +01:00
Michael Meeks c9cac383b6 net: add socketpair wrapper.
Useful to have a Unix socket-pair to communicate with
a forked process.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ic4ad1eee62b6d3b40a03bc8e59bce6e0e16efc28
2024-03-12 08:49:39 +00:00
Michael Meeks a8d97dc16d Calm down warnings.
Seems browsers start to ping servers on their websockets, so don't
warn about that.

We trim memory left and right in clients, that doesn't deserve a
warning either.

Change-Id: I7bdcc99d167a8df3c847a1893dee8cd9123250f2
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-03-12 08:33:17 +00:00