Commit graph

10054 commits

Author SHA1 Message Date
Michael Meeks
e844b89d6c test: simplify the timeout logic.
Change-Id: I0c253629b983f2813237536e6e2c6d04d5b97dd1
2020-01-21 15:07:54 +00:00
Michael Meeks
8f91659ae0 test: dung out redundant LOOL_TEST_CLIENT_PORT.
And cleanup other related oddities.

Change-Id: I2d179a2ece6a8553e10e406ad4e5da08a2ff58e5
2020-01-21 15:07:54 +00:00
Michael Meeks
9dfac6dab1 test: switch to parallel tests based on Unit framework.
Increase a few timeouts, bin old-style standalone unit tests,
fix a number of bugs.

Change-Id: Ia3d59466ecb9a9443807ba3445d04dd5f77e3dba
2020-01-21 15:07:54 +00:00
Michael Meeks
0599db3576 copyFile: de-poco-ize and handle EINTR and short writes.
Change-Id: I2046881c786a9f31f45c53f282de9ddd9a9cebcf
2020-01-21 15:07:54 +00:00
Michael Meeks
c187f414c5 kit: show the correct documentLoad URL when a template is used.
Change-Id: Ib9b3ac3e166dfbece8c7212fc239d517ce1c0bba
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87140
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-21 16:07:31 +01:00
Michael Meeks
b97ad1645a Clobber gio in the configuration.
Otherwise activation fails for http:// or https:// since the core
mis-identifies the (disabled via core: 1c081112714e) gio provider
still and won't load via the ucpdav1 provider.

Change-Id: I66a58da3f94a4479729a3e39ed5070e4a05dcf69
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87141
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-21 15:06:17 +01:00
Michael Meeks
aadf5af77b reduce verbosity of FileServer trace logging.
Change-Id: I5a57e91742be504bcb2e51b45f6890420e52bb91
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87134
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-21 14:39:21 +01:00
Jan Holesovsky
1c0fb25e90 android: When the cell cursor moves, focus the document.
This particularly happens when the user has entered something into the
formula input bar - after hitting Enter, the focus should return to the
sheet.

This is consistent with the desktop LibreOffece, where hitting Enter in
the formula input bar returns focus to the sheet too.

Change-Id: I020e008022e958f471d0cb31a8de986f576ba704
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86984
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-21 12:43:17 +01:00
Alexandru Vlăduţu
91175c854a tdf#130103: loleaflet fix save from menu for spreadsheets
When editing a cell in a spreadsheet, if you don't focus on another
element before clicking 'Save' in the menu, it won't actually save the
last edited cell. This is different from the 'save' toolbar icon, which
actually saves it.

Change-Id: I5bb7551ce9fad28f3108bee8a7a44735e01f9d93
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87119
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-01-21 11:34:12 +01:00
Tor Lillqvist
ebaca16c4f tdf#128509: Make the column and row headers tappable on touch devices
After you have sleected a table on a text document in the iOS (and
Android) app, you are supposed to be able to tap the "header"
rectangle that is painted for each column and row, in order to select
the whole of that column or row. But this worked only in web-based
Online with a desktop browser, for clicking it with a mouse.

Was much more complicated than expected. But now it seems to work. One
needs to use Marker instead of Rectangle.

Change-Id: I4f701c70dd4edce6a3edb6fcf9feffa7b7969a8c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87079
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-01-21 10:26:58 +01:00
Michael Meeks
09bb16ad78 util: for process thread count - ignore '.' and '..' in /proc/self/tasks
Change-Id: Ieec6eaac475b4e318578cfc0d93c36e2395e6f19
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87097
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-20 22:04:40 +01:00
Pranam Lashkari
e7f527b070 Mobile wizard: Sheet tab context menu conversion
Sheet tab context menu converted to mobile wizard for mobile devices
bugfix: prevented mobile wizard to appear in readonly mode
which allowed sheets editing in readonly mode

Change-Id: I64c9437d2171b0518aa3c08f06d8d65fb3d302af
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86507
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-01-20 17:54:44 +01:00
Weblate
081ce41e50 update translations
LibreOffice Online/android-app (Asturian)
Currently translated at 38.4% (38 of 99 strings)

Change-Id: I8e041ba673955f00b4ff5ffa6c3813b25c670cdf

update translations

LibreOffice Online/android-app (Catalan)
Currently translated at 98.0% (96 of 98 strings)

Change-Id: I33985ea09845c154626cd0cb45d78e1818ac2e9b

update translations

LibreOffice Online/loleaflet-help (Dutch)
Currently translated at 48.3% (201 of 416 strings)

Change-Id: I4b3e98671b2ef20b0ca806d131458a004ece3a3c

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 90.1% (375 of 416 strings)

Change-Id: I2b16c6e90b2a3344bace7653614b2a7fd6e5c802

update translations

LibreOffice Online/loleaflet-ui (Basque)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I883b9548eb1efe3af7a2e40393ebf735f33a677d

update translations

LibreOffice Online/loleaflet-ui (Esperanto)
Currently translated at 63.3% (179 of 283 strings)

Change-Id: I847eb27ce7f1971295e9ed274b5028e627b923b6

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 97.9% (277 of 283 strings)

Change-Id: I3be1b00a13d067390fa190da4fccc952da5076b4

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 33.9% (96 of 283 strings)

Change-Id: I8808049c8f058b62af323033725c7311bc1e2be5

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 65.9% (274 of 416 strings)

Change-Id: I1ae5c4d3cddd11a83d9254686182fc00d1b801d9

update translations

LibreOffice Online/loleaflet-help (Italian)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I6651eb476655443b236ae8e9f934828f760a4b3e

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 71.2% (296 of 416 strings)

Change-Id: I68629ed044bd30c854d823caf70df954912fdc63

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 85.3% (355 of 416 strings)

Change-Id: I624ea006ffafe977983dc823622222c903a17be2

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 99.8% (415 of 416 strings)

Change-Id: Ib8ba3e6397fcd396c8d01fbfba48db91bee39238

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 65.4% (272 of 416 strings)

Change-Id: I364c39de59a4b3a4cb705a9f0eff76aa94e247e4

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 97.5% (276 of 283 strings)

Change-Id: Ied8ff70562b4d98e181662e1e60496ef2b5bf4c7

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I0f777f6dc44538153b5b7bd5a4f731e0e5110f66

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 71.2% (296 of 416 strings)

Change-Id: I4b759612e69377768f5e165c4bc8daaf8f1e177c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86990
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-01-20 11:55:27 +01:00
Miklos Vajna
2c9e1319d9 Fix a -Werror,-Wrange-loop-analysis warning
wsd/Storage.cpp:451:21: error: loop variable 'header' of type 'const std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >' creates a copy from type 'const std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >' [-Werror,-Wrange-loop-analysis]

Change-Id: I90a57333b0807f3457d5b1082097426a3bf9678d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87055
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-01-20 10:08:09 +01:00
Michael Meeks
e6a3364e93 Move file url anonymization down from LOOLWSD into FileUtil.
Change-Id: I415c73b10621d5c7c942367bbf38a3bbd9bf8f27
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87024
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-18 20:05:35 +01:00
Michael Meeks
8cca6dcac8 Cleanup JWTAuth token before shutdown.
valgrind had some exciting double-free action on unclean shutdown.

Change-Id: Id7dd3d8ff60387ae51521bd2c74e4d6bcc30ff2e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87025
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-18 19:26:10 +01:00
Dennis Francis
3af2346bbb Request comment positions when zooming/view reset
The twips coordinates sent by core in CommentsPos message are already
correct w.r.t zoom level (See ScModelObj::getPostItsPos() in core.git).
In addition these values are view specific (each client user).

Change-Id: I18c2971f34362de0eba5181f9dbe3e662c223575
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86986
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-18 17:42:24 +01:00
Michael Meeks
b72f37826e sighandler: break infinite loop with corrupted heap
ignoring the segv can lead to not making progress, while churning debug.

Change-Id: I97af266cec3feefe2dcbd9adb8dbf4b13a4d69bd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87002
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-18 17:23:02 +01:00
Pedro Pinto Silva
c92682c813 Mobile: Scroll indicators (shows the user he can swipe to see more):
- Use shadow instead of background gradient in order to have more granular control over the result (multiple shadows)
- [Toolbar]: decrease indicators width to 0; [MobileWizard]: decrease indicators height to 0
  - ^ to avoid mistaps. We now have larger "gradients" with 0 space from the element which allows any elmente that is underneath to be tappable

Change-Id: Ie329ed4e85d7342ab9cdc90f89cfdc8663e73da7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86979
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-01-17 14:05:25 +01:00
Miklos Vajna
e2fa8c43a1 Convert some of the integration-http-server tests to new-style ones
So that they are in-process, which means it's easier to debug when they
fail.

Change-Id: I164b97be0bc487a02d4b2a872b9c0e40791056cd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86951
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-01-17 09:16:41 +01:00
mert
0cc4977abd Disable insert comment on spreadsheet for mobile
Change-Id: Iff7cedd989452b44ad1eee3bc0fc4cb55f84a3ba
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/85752
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-16 19:34:47 +01:00
Alexandru Vlăduţu
c4adca9978 tdf#129979: loleaflet send postMessage on cancel for password protected files
Change-Id: Ied484ee8cce185c707d16c5181ca9246f69bdea2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86679
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-16 17:27:08 +01:00
Michael Meeks
1c754d5b11 Revert "Serve a decidedly unpretty clipboard download page"
This reverts parts of commit da455c486a.

Unfinished; also stream size calculation cannot have worked.

Change-Id: I39635fe5165b82dd36095d58cfefff4920ce3a35
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86845
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-16 17:21:38 +01:00
Pedro Pinto Silva
3f6942aed9 Mobile: MobileWizard: Add visual indicator to mobile-wizard-content:
- it appears to show the user that there is hidden content and that is possible to scroll/swipe
- it disappears once the mobile-wizard-content reaches the end

Change-Id: I93c039fb614cd28e0d40b63a3b5a744d730f5dbe
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86865
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-01-16 15:43:42 +01:00
Jan Holesovsky
2ec8f26994 android: Fix tapping in the sheet after using the formula input bar.
This fixes this scenario:
* tap into the (routed) formula input bar
* write 'abc'
* tap a different cell in the sheet
=> not possible to write in the cell in the sheet any more, only
possible to enter text via the formula input bar.

Change-Id: Ib45bd660605bc0fc4bcf4f9b1aef258fd82e98d8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86924
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2020-01-16 14:17:02 +01:00
Tor Lillqvist
d229a0d873 Check also graphic selection to see if a context menu should pop up on iOS
Change-Id: I475a9e14122ff8f0ca6ba3bc58ced945919e1087
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86864
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-01-16 09:54:44 +01:00
Weblate
a68a687f6e update translations
LibreOffice Online/loleaflet-help (French)
Currently translated at 57.7% (240 of 416 strings)

Change-Id: I67fa7619e84662e0ac6f7fbbd7b48290fff308d5

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I6e1be426eb75e5b87f10e2338659a9a6a7e7d93d

update translations

LibreOffice Online/loleaflet-ui (French)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I8be0537b31c251b739e0444db9389ed73abd473c

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 56.5% (235 of 416 strings)

Change-Id: Ice1a07804f9d8af9852fb518e6e5de3eb23284bb

update translations

LibreOffice Online/loleaflet-ui (French)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I2d33f2166683cec9ed3d81847703c75b77673d9b

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 82.7% (344 of 416 strings)

Change-Id: Ib5bf668509f2ba46ea14ccfd068002c75398ae79

update translations

LibreOffice Online/loleaflet-ui (Basque)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I9a1777fe5aa396461b66947477cfb9961e2a8624

update translations

LibreOffice Online/loleaflet-ui (Italian)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: Ie6276d1dcfb3fa85788fd51a92ed45d8bcb1aedc

update translations

LibreOffice Online/android-app (Italian)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: Ib2b30bd6c239c20c4a863a0b396936cf5c86f750

update translations

LibreOffice Online/android-lib (Italian)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I2a57065004f3c38c63b1523be845455e9d57f974

update translations

LibreOffice Online/loleaflet-ui (Portuguese (Brazil))
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I8576418e089bfce6568d2c1a654f66e049810156

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I2cd272bccb87d1c34df38e2eb126efe1dbd0104c

update translations

LibreOffice Online/loleaflet-ui (Welsh)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: Ia047bad0abb6d7d87d690f90cf81f03403ee41ee

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 97.5% (276 of 283 strings)

Change-Id: I6750f027e5fb01dc09182b9a9a4fdf855d554d3a

update translations

LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I67c4efa59f061c150e7901b164bb408c29142b2d

update translations

LibreOffice Online/loleaflet-ui (Upper Sorbian)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I3da4481bdeed28e9d714ef42f3428629672d4b6b

update translations

LibreOffice Online/loleaflet-ui (Lower Sorbian)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: Ifdf40e74cedcc1c1e56c4eadfc83a9e50d38b91f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86764
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-01-16 07:43:45 +01:00
Tomaž Vajngerl
89a75eee71 android: clipboard is sync. so exec. in the thread is not needed
As we changed the clipboard to be synchronous now, it's not needed
to execute copy/cut/paste actions in a separate thread anymore.

Also change WebView message interception, so we can execute
actions after a we send WebView a message. This is needed when
we copy/cut something and need to push the content to the android
clipboard and clipboard file.

Change-Id: I08b6ee55ca8bd7b958d348e257c19395ea39ac80
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86882
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-16 00:59:15 +01:00
Tomaž Vajngerl
d6ed93a645 android: improve clipboard, inter-document copy/paste possible
In andorid app, we just supported html or text to be copied between
applications (inside the document the copy/paste is handeled by
the core). The biggest problem with this is that copying between
documents doesn't work or works just as good as our HTML support
is. With this change, we get all the clipboard content after copy
and serialize it to a file into the cache and if we then paste in
another document, we read the content of the file and paste
without any loss of fidelity.

Change-Id: I3501045ff2e815a7e2f8c6ecce5255511c256ca6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86833
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-16 00:58:57 +01:00
Tor Lillqvist
a7250d1d3f Nothing fires 'input.press' events
Such used to be fired by Map, but that was removed some time ago.
So kill the attempt to use it on iOS, it must be dead code.

Change-Id: Ic4af8394c0f059f4a06a1c6d371890863f250696
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86863
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-01-15 18:25:17 +01:00
Tor Lillqvist
e03c81a976 Show the document file name in the mobile apps, too
Show it in the same text input field that is used in the WOPI-like
case. Make the text input field non-editable and not even focusable.

Show the file name as it should be displayed to the user. I.e. reverse
two layers of URL encoding. At least for the iOS app this is
necessary.

Change-Id: Ifc3c8c0907178ecb419f3108ffc558a05a16313d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86840
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-01-15 13:40:52 +01:00
Michael Meeks
e18fe5e5ef postMessage harness - extend to catch CSS issues.
Change-Id: I0731ae72ba1937916b055882171785ee268e16c4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86795
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-01-15 11:03:24 +01:00
Michael Meeks
6305cc70fa postMessage tests - advertise them, and do some cleaning.
Set the iframe's src in a script so we can pass on a filename cleanly.
add a postMessage: sample URI at the end of 'make run'
Move some of the more obvious pieces into framed.doc.html.

Change-Id: I2bd8215f083bcb16369421ed88acb198808c1fdb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86787
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-01-15 11:01:41 +01:00
Michael Meeks
b5f58fbe8c postMessage CSS checking improvements.
Ironically our attempts to double-check message origin against our
parent was blowing a security exception.

Instead send the list of origins we will accept from WSD, and
check them ourselves (as well as the browser check).

Why make it so hard to check that a postMessage comes from an
ancestor frame ?

Change-Id: I1311be3e1d68a31cfdc96b45a5eb5dd7f26e7ea9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86788
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Alexandru Vlăduţu <alexandru.vladutu@1and1.ro>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-01-15 10:56:27 +01:00
Jan Holesovsky
0a35e432ff android: When the mobile-wizard is open, the Back button should go a level up.
Without this, we were closing the document, which was very annoying.

Change-Id: I1e841da28c92c0e01284c2d7e2d4dbc6762bfffd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86779
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-14 17:44:28 +01:00
Pedro Pinto Silva
4da29f6422 Mobile: Spreadsheet: Readonly mode: Adjust top positions from frame and document
- account for moz vs webkit intricacies
- account for newest spreadsheet formula implementation

Change-Id: If5ae4159bf5b5cea82771b085f8e7e90f97e0804
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86760
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-01-14 14:34:19 +01:00
Pedro Pinto Silva
4162d892e0 Remove changes introduced in 85362 because :
- it was causing improper behaviour when multiselecting
- there is always a cell (svg path) that is been set always with diferent stroke color even when multiple cells are selected and so CSS shouldn't be modified but instead, probably, JS bits

Change-Id: Ie8f11f14f5ffc958f646332c7fe2bc810b34d808
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86755
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-01-14 13:11:06 +01:00
Ashod Nakashian
f0d6b619e9 leaflet: give focus to the dialog on open
Change-Id: I715025123edf2bcf0564b5ce43c16b5595daed5b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86754
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-14 13:02:40 +01:00
Ashod Nakashian
4619ac73ff wsd: minor cleanup
Change-Id: I2c062e1f7d309c8d1c54e6d0e8ca4c40f288d09d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86723
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-14 13:01:05 +01:00
Tor Lillqvist
7254183877 Add some source files from sd for easier breakpointing
Change-Id: I2797b8fb8fbeebe73b6536a27733ad5fe2123d50
2020-01-14 13:21:04 +02:00
Muhammet Kara
7b94981b7d Show hyperlink pop-up on cell selection
Change-Id: I59f3301bd94c4d898ec2ff82fd91d3c611122d3a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86651
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-01-13 23:15:52 +01:00
Michael Meeks
1cf5bde981 Toolbar color buttons should track transparent state as well as colors.
Change-Id: I727ff4f942b7059da4f17216fe523dd1bbb04cd2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86710
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-13 20:01:37 +01:00
Michael Meeks
f5d159b80b mobile: restore calc background quick-toolbar button & fix typo.
Change-Id: Ieae15188113cd646bb3fe9be7747308a95857569
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86709
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-13 20:01:28 +01:00
Pedro Pinto Silva
84ef6bd6fb Mobile: toolbar-down: scroll/swipe indicator: increasing width
also related to: https://gerrit.libreoffice.org/#/c/online/+/86691/

Change-Id: I85f0500927164cfeab756c1588e3f5e97644b866
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86702
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-01-13 17:31:34 +01:00
Weblate
72f34a9e51 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: Iaf860441243cd2f3922863a52b8987a865aeaf14
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86698
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-01-13 17:27:43 +01:00
Weblate
6a68ba735a update translations
LibreOffice Online/loleaflet-ui (Italian)
Currently translated at 100.0% (282 of 282 strings)

Change-Id: Ic91e8746d85971956f26e86d41e180b0a63b27fb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86657
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-01-13 17:27:27 +01:00
Andras Timar
e199bcc72d add 'Report an issue' item to the Help menu
if unwanted, this menu item can be hidden with branding.css

 #menu-report-an-issue {
    display: none;
 }

Change-Id: Ic3fc3a74e8bea0b68ced542423c6068b150f647b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86632
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-01-13 15:59:46 +01:00
Pedro Pinto Silva
839cab9b65 Increased the horizontal scroll indicator contrast,
- which increases legibility even when there is a checked element underneath
- also decreases its width so the element that is partially under is still interactive without the need to swipe it first

Change-Id: I54fe3e3d0bd699246f76c77e929b3c4a250e0b82
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86691
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-01-13 15:11:00 +01:00
Henry Castro
069c95e9e5 loleaflet: mobile: trigger the mobile wizard on ..
long press event in thumbnail previews in Impress

Change-Id: Ib0661b906882b87d68833c96ce3f535bd3fccbec
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86568
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-01-13 13:13:33 +01:00
Henry Castro
f192a5e7ba loleaflet: simplifiy click listener on thumbnail previews
It is complicated to debug 5 event listener attached to an element,
let's use one event listener.

Change-Id: I9de1f1707f95f07a49358c8e7580ad232edd4389
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86567
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2020-01-13 13:13:15 +01:00