Commit graph

22525 commits

Author SHA1 Message Date
Miklos Vajna
28665d45d2 wsd, DocumentBroker: check for missing child process
wsd/DocumentBroker.cpp:2861:32: runtime error: member call on null pointer of type 'WSProcess'
    #0 0x55cbce63d7d9 in DocumentBroker::disconnectSessionInternal(std::shared_ptr<ClientSession> const&) /home/vmiklos/git/collaboraonline/online-fuzz/wsd/DocumentBroker.cpp:2861:32
    #1 0x55cbce66c74d in DocumentBroker::removeSession(std::shared_ptr<ClientSession> const&) /home/vmiklos/git/collaboraonline/online-fuzz/wsd/DocumentBroker.cpp:2764:13
    #2 0x55cbce944614 in ClientSession::_handleInput(char const*, int) /home/vmiklos/git/collaboraonline/online-fuzz/wsd/ClientSession.cpp:886:24
    #3 0x55cbced66255 in Session::handleMessage(std::vector<char, std::allocator<char>> const&) /home/vmiklos/git/collaboraonline/online-fuzz/common/Session.cpp:271:13

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I2a6f830de82ec8189312e57e6554a57909a0aaaa
2024-01-08 09:13:27 -05:00
Miklos Vajna
08ecc20a90 CanvasTileLayer: allow empty string as payload of the state changed callback in json, too
Once core emits JSON format for the LOK_CALLBACK_STATE_CHANGED callback
for the .uno:RowColSelCount uno command, select 2 cells in Calc ->
status bar is updated correctly, now select a single cell again in Calc
-> status bar is not updated. We want to emit JSON format for more uno
commands in the future, for example that is meant to allow testing the
fix for the statusbar part of
<https://github.com/CollaboraOnline/online/issues/7492>.

CanvasTileLayer's _onStateChangedMsg handles a mix of plain text and
json payloads, and the plain text case already allows an empty payload,
while the JSON one does not.

Fix the problem by assuming the intention in commit
403fe10c9d (jsdialog: handle graphic items
updates, 2019-11-28) was to make sure the json key is not missing, not
to block empty string values for the 'state' key.

Once this is in, core.git can emit JSON for .uno:RowColSelCount, can say
which locale was used to generate the payload and we can assert the
correct language in a test.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I145a552e88fdc869a151a0bd07e8b42474ffd6b8
2024-01-08 10:11:17 +00:00
Ashod Nakashian
61cf7b9601 wsd: clean up unused header includes
Clang-tidy recommendation driven header
include clean-up.

Change-Id: I30c32866b7798e70df0463ee6bc7a0bcc3de5049
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-01-08 08:38:48 +01:00
Michael Meeks
4dc2cd4e16 logging: reduce excessive logging noise re: tiles-on-fly.
Also better explain that we dump sessions twice.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Iec3ad5b9f78f0572d43cfba1191bcec3584c0092
2024-01-08 08:32:12 +01:00
Michael Meeks
29db7db278 logging: calm down dropping of on-the-fly messages.
These tend to be sent at small increments of time, so have some
hysteresis to aggregate drops. Stalled JS such as in a debugger
or a client not responding can cause this for quite some tiles.

Change-Id: Ia807d4ba0ac26a95cad435cba9ed191f22706041
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-08 08:32:12 +01:00
Andras Timar
890cda88a7 do not display 'Go Offline' button when WASM is not enabled
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I02bde8b9f6ca5cfadc036ae930e7f6eeb23c2587
2024-01-06 19:03:13 +01:00
Andras Timar
57f5ee5025 enable l10n of 'Go Online' and 'Go Offline' labels
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibc9cb62047c2bd7c8082ea4a222417e9c6247c54
2024-01-06 19:03:13 +01:00
Andras Timar
6c24a501cf for mobile apps 'Save As' is the correct label
Download does not mean much in mobile app context.
It's an offline tool. We can save (or export) the
document in a different file format.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7b5cd8cd49258803c21bd21ff087008fe715c613
2024-01-06 19:03:13 +01:00
Neil Guertin
0dd5dd6f60 Rename getFrame() to cframe()
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I1f220687eb972d4b3d65cb26fe0201b1ccd24993
2024-01-05 07:12:17 -05:00
Andras Timar
71f8939c98 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I742bb762df3448fab70428ae575f6616f2d6d71a
2024-01-05 13:07:52 +01:00
gallegonovato
a5eb4d8224 Translated using Weblate (Spanish)
Currently translated at 78.8% (368 of 467 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (554 of 554 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I04039a166f235b4becfc0a4f263564c8d1db0abe
2024-01-05 13:06:32 +01:00
Alexander Gabilondo
ec148473a3 Translated using Weblate (Basque)
Currently translated at 78.8% (368 of 467 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/eu/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic6a36fdd21e58f5c9d5b1be73de5ced722f73002
2024-01-05 13:05:12 +01:00
Sveinn í Felli
92747be523 Translated using Weblate (Icelandic)
Currently translated at 97.6% (541 of 554 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/is/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I71c75b5bd1830ed7418a8e88f83c9ea48ba46637
2024-01-05 13:05:12 +01:00
Stanislav Horáček
fa1f8779a3 Translated using Weblate (Czech)
Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (554 of 554 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I19dd29ea5c45d9658d9bd9775b1b64706d94f1f4
2024-01-05 13:05:12 +01:00
Ayhan Yalçınsoy
e814cdf183 Translated using Weblate (Turkish)
Currently translated at 85.8% (401 of 467 strings)

Translated using Weblate (Turkish)

Currently translated at 98.0% (543 of 554 strings)

Co-authored-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Co-authored-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I466698cf528448833e0042a141f49bbd2668c553
2024-01-05 13:05:11 +01:00
Martin Srebotnjak
730e9a3d0b Translated using Weblate (Slovenian)
Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (Slovenian)

Currently translated at 100.0% (554 of 554 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0d687f46e979aa49ebf7fc0ccf8b50f97305e5c4
2024-01-05 13:05:11 +01:00
Rob Pearson
c69d955514 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (554 of 554 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (English (Australia))

Currently translated at 78.5% (367 of 467 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (554 of 554 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_ZA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5ba18be10ffd151f12c53a6023106e1b606b180b
2024-01-05 13:05:11 +01:00
bittin1ddc447d824349b2
6e526f0128 Translated using Weblate (Swedish)
Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (Swedish)

Currently translated at 100.0% (554 of 554 strings)

Co-authored-by: bittin1ddc447d824349b2 <bittin@reimu.nl>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sv/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ica06508526c0abbf644204205ac2b71f9ec11f6b
2024-01-05 13:05:11 +01:00
Ettore Atalan
e64464412f Translated using Weblate (German)
Currently translated at 99.1% (463 of 467 strings)

Translated using Weblate (German)

Currently translated at 99.2% (550 of 554 strings)

Translated using Weblate (German)

Currently translated at 98.5% (460 of 467 strings)

Translated using Weblate (German)

Currently translated at 98.0% (458 of 467 strings)

Translated using Weblate (German)

Currently translated at 97.8% (457 of 467 strings)

Translated using Weblate (German)

Currently translated at 93.3% (436 of 467 strings)

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/de/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I828e5ef8e9ac572c696970c42eec333c16a87092
2024-01-05 13:05:11 +01:00
Milo Ivir
c9eabdd464 Translated using Weblate (Croatian)
Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (554 of 554 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4caa22b84638934e6f8474cbdad5ecd9e5ffc51e
2024-01-05 13:05:11 +01:00
Ihor Hordiichuk
841a70940d Translated using Weblate (Ukrainian)
Currently translated at 100.0% (554 of 554 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (467 of 467 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I373c4bce7a32783a9d405731fa8c0158278bf6f2
2024-01-05 13:05:11 +01:00
Sebastiaan Veld
63ac4c305b Translated using Weblate (Dutch)
Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (554 of 554 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7e6d0470da2758a1d98ed45ce2b3d1e8f2a6acfa
2024-01-05 13:05:11 +01:00
Matthaiks
083f0b06f3 Translated using Weblate (Polish)
Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (Polish)

Currently translated at 81.1% (379 of 467 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (554 of 554 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic5af4a7980c51e36c6b5b5af9e1eaf173f23d09d
2024-01-05 13:05:11 +01:00
Andras Timar
c9a4aa15b1 Translated using Weblate (Hungarian)
Currently translated at 100.0% (554 of 554 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7785f45c500aa8c2a4bb5c447bc3fa09de9b766d
2024-01-05 13:05:11 +01:00
Andras Timar
93e937fd51 Add src/control/Control.UIManager.js to list of localizable files
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifb6795647332b6f2dfb208e9b426f788759e325a
2024-01-05 13:03:55 +01:00
Rash419
fb2615c735 fix: tiles not getting updated after migration
- when migrating document from one server to another using indirection
  server tiles were not getting updated
- _resetClientVisArea should be called even if there are no changes to
  the client because the server needs new data even if the client is
  unmodified.
- changing wireId and invalidFrom values to 0, 0 to force a keyframe
  b1f0834ac4/browser/src/layer/tile/CanvasTileLayer.js (L7266)

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9aa0b34c3b1f157f3e4494568802588e00376d7e
2024-01-05 17:26:36 +05:30
Szymon Kłos
fa006fc3af Don't make view inactive when dialog is opened
If user opened any dialog and we got blur event on
map - it was doing the view inactive by sending
userinactive message to the server and ignoring any
meesages we tried to send. Because of that it was
impossible to test in cypress dropdown dismiss by
click outside popup (due to losing focus from map).

This is regression from rework:
commit 86e8491707
For .eslintrc change, see: https://github.com/typescript-eslint/typescript-eslint/issues/1824

where we changed:
- if (!this._active || isAnyVexDialogActive()) {
+ if (!this._active || isAnyVexDialogActive() || this.map.jsdialog.hasDialogOpened()) {

Make more precise condition so we check if the dialog is a dim one.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic200bd3f0327e4c43d80fb8cf7c2fbd176485b82
2024-01-05 12:48:47 +01:00
Szymon Kłos
5ed163faa1 cypress: autofilter dismiss by click outside popup
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib5a447c9ba772fdc8441b22e98e531505424a6f1
2024-01-05 12:48:47 +01:00
Pranam Lashkari
3cb395959b annotation: fix Uncaught TypeError
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ice2ab2198640b30ca75bc5e088b0187e34dd6422
2024-01-05 15:37:15 +05:30
Pranam Lashkari
fcffb218ac annotation: make sure calc comment visibility is set correctly
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie2563fd99b8a1eba33681dcea69077db66e1db0b
2024-01-05 15:37:15 +05:30
Pranam Lashkari
f649d1e6a6 annotation: calc scroll editing comment with sheet/view
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1306a45a9308226b197b044c47cadd3e5cc4bf17
2024-01-05 15:37:15 +05:30
Pranam Lashkari
8a45ea51f6 annotation: in writer select comment forcefully to modify
problem:
if comment is already selected and has replies,
then if we try to modify it may not rearrange replies to make comment editing fully visible

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1c563e5a728dcaa3fdd93cd3612f59a3518e887e
2024-01-05 15:37:15 +05:30
Pranam Lashkari
6550e713c4 annotation: calc scroll vertical to make selected comment visible
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iaac78e7a61acd3600a4e6f88f222a60eb232f9d8
2024-01-05 15:37:15 +05:30
Pranam Lashkari
2bf93e34c3 annotation: writer scroll to make selected comment visible
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ifc76f83ef1cca6cf6113f63bcb50312523ffbf52
2024-01-05 15:37:15 +05:30
Michael Meeks
82bca03b2a spdx: improve machine and human readability of headers.
Change-Id: Id0127edf671a1751ba6cbda3ed36515bd09c84ac
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-05 10:01:10 +00:00
Henry Castro
2949e94584 browser: adjust initial annotation height
It is a bug from Firefox, according to records
https://bugzilla.mozilla.org/show_bug.cgi?id=292284

The vertical scroll bar requires minimum height to render.

Change-Id: I93b06c625bc98c307dde0c1d6331d457ff99baa5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-01-05 09:40:29 +00:00
Henry Castro
35a6791260 browser: fix triple click event
The 'addMultiClickListener' fires 2 times
'triple click', because it also registers
for 'quadruple click' too.

Change-Id: Iee7565163e64373c87016743c06fe1cc084b80f4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-01-05 09:32:51 +00:00
Andras Timar
fc63b1218c Bump version to 23.05.7 for iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2e10552fdcfa0c73fbc6593fe11ec5425e042ab4
2024-01-04 20:32:06 +01:00
Neil Guertin
fc6fe42ab7 Add automated user debug tools
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ib6cb1080780f75dc0ea75930c757567e90c46bd8
2024-01-04 10:54:26 -05:00
Ashod Nakashian
b1f0834ac4 wsd: do not upload unmodified document
When always_save_on_exit=true we should
still not upload the document when it
isn't modified.

In this case, because we now always
save the document (forced) when
always_save_on_exit=true, and because
saving always generates a new file on
disk, with a new timestamp, we couldn't
detect that there are no modifications.

We now still force save, but ask Core
to skip it if the document is unmodified.

This is safe since we now always issue
the save, but rely on Core to do the
right thing. When the document is saved,
we do the normal upload as in that case
we know we have a new version of the
document, which must be uploaded.

Worth noting that the closedocument
command doesn't trigger the same path.
To reproduce the issue, we need a new
test that disconnects, instead of the
graceful closedocument command.

Change-Id: Iaa4e0363ed2eca124f2d1943393e65c0c187aa18
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-01-04 05:29:32 -05:00
Ashod Nakashian
7f2f946aec wsd: logging and cosmetics
Change-Id: I777db7d1879e84f341f11a90fce7abf8241f5ced
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-01-04 05:29:32 -05:00
Michael Meeks
b5d6ed1ea6 remove unused code.
Change-Id: Ib6ee8fa4b99c2adef4268283b8e622c305fc8f1a
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-04 09:26:55 +01:00
Michael Meeks
b3a2d55194 remove unused code.
Change-Id: I328cf6783deae0a9be3aab10634b8d76e7efe965
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-04 09:26:55 +01:00
Patrick Luby
8a9f8f0127 Reenable debugging from Safari
The new WKWebView.inspectable property must be set to YES in order
for Safari to connect to a debug version of the iOS app whether the
app is running on an iOS device or on macOS.

Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: I873a25a149e3ec967ab0775ba8105ecce26f07ac
2024-01-04 09:24:02 +01:00
Andras Timar
00278bc5a9 Set window.savedUIState to false in Android app, too
Similarly to the iOS case seen in #7908 the %SAVED_STATE_UI%
does not get replaced. In mobile apps there is no fileserver
that can replace these variables.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icb7f9d7550b0990cc0ad1d65253773b49ff97795
2024-01-04 09:13:33 +01:00
Andras Timar
bd649e2d40 Enable grouped 'download as' for mobile apps to save space on notebookbar
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib2388139e0214c9f244796546a362b56cca986ed
2024-01-04 09:13:33 +01:00
genofire
b3530563c9 fix(helm): improve alerts many viewer on document with metadata
Signed-off-by: genofire <geno+dev@fireorbit.de>
Change-Id: Ie85e76ae7813ae44d2e4748feac5b8962562abcb
2024-01-04 13:15:10 +05:30
Szymon Kłos
de1de28fdd jsdialog: simplify dropdown closing
This is partial revert of "jsdialog: use open/close instead of toggle for dropdowns"
commit 0833ec6489.

Which introduced "state" variable which was desynchronised with core in
some cases. Now directly call desired close command in closePopover.

This fixes bug:
1. Click on the sidebar's Paragraph's "Ordered list" dropdown arrow;
2. Click on any kind of the list (so that the current paragraph gets the chosen list style);
3. Click on the drop-down arrow again, expecting the drop-down to open.
Result: you need to click two times to open menu again

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ief49d4aff45bc58a6c02fcdcd8cb2b3f1ec6e691
2024-01-03 22:11:18 +01:00
Michael Meeks
b10b9276b8 Use /proc/self/smaps_rollup for improved perf #7927
Using the aggregated file saves a hundred+ system-calls per
pid we're getting data for, and presumably also lots of time.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I41c40982ebbec44aba72a1d15dabf24a8986f59e
2024-01-03 20:20:02 +00:00
Gökay Şatır
147275ddbd Core side handles the right click with mouse down event.
It internally handles the mouseup. So we don't send it again.

Without this change, context menus can't behave normal. Because mouse pointer is set to somewhere else with the mouse up event.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I719565b1ce192045250f9217e971725d8cc1003b
2024-01-03 18:15:35 +03:00