Commit graph

10806 commits

Author SHA1 Message Date
mert
272715a96d Fix url popups can't be clicked on browsers
Change-Id: I3c2008e06370b4b48a93b68e58ad1e45a4f75d27
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91230
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-27 18:01:27 +01:00
Tor Lillqvist
c8d15408e9 Add another "pseudo assertion"
Like in 09821236ef.

Change-Id: I10509b2ad4819a9b7f3d9c59c87ecd3bc7432d7e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91224
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-27 16:20:07 +01:00
Tor Lillqvist
60a3070b67 Avoid 'TypeError: undefined is not an object' in the iOS (and Android?) app
There is no map._clip in the mobile apps as they don't use the
internal clipboard implementation in loleaflet.

Not sure why L.Clipboard.filterExecCopyPaste() needs a check for
window.ThisIsAMobileApp as no L.Clipboard object is ever created in
the mobile apps. (See L.Map.initialize() where this._clip is not
assinged any value in the iOS or Android app cases.)

Change-Id: Ib27ec10463667091e65fd813ceb554e83c0952fb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91221
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-27 15:40:40 +01:00
mert
c07f4fb974 android: added context menu for the files
Change-Id: Iab18379797917ce2e8ab25ed428f6a806f5f4e7e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90944
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-27 15:32:59 +01:00
Jan Holesovsky
75b6178d33 user list: Centralize the check whether it should be visible or not.
This fixes the initial blink of the dropdown with '0' in there and
considerably simplifies the code.

Change-Id: Id2ca81ba4c06f417ae102f1ce60cae767e1c62cf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91206
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-27 15:02:19 +01:00
Jan Holesovsky
592b4c2316 user list: Make sure the events are set.
The avoidance of the busy loop also avoided setting the events; so the
list of users was always showing 0 because it never got the add/remove
events.

Change-Id: I397f30ceb6f0ab305fc01b9ef1183925f30d529d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91154
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-27 13:25:16 +01:00
Jan Holesovsky
73c8b3dd53 user list: Make sure it shows in the non-wopi case.
When the WOPI does not contain the HideUserList, or when there is no
WOPI involved, we should show the list.

Makes the condititon slightly more readable too I hope.

Change-Id: I801df07e6bcae9362c36182ac88e503fbcd29513
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91153
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-27 11:27:24 +01:00
Pranam Lashkari
0b4c7fd66c leaflet-css: follow up for making sheet tab taller
"+" button for adding sheets aligned
sheets name aligned to center

Change-Id: Ie180ba668172ed4853bc43e49a1c143c56ef80ad
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89607
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-03-27 09:58:45 +01:00
Michael Meeks
32288ab908 Store command values for colors immediately on set.
Avoids needing to wait for a notification - if it ever comes.

Change-Id: I3d7118fa4682ebfe908dee11cdd123aafc68bd89
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91150
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 19:36:07 +01:00
Michael Meeks
5766ed7706 Re-factor JSON node searching into LOUtil.
Change-Id: Ib6e42371441b15999cad35262c07aa1e9b38c429
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91099
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 19:35:37 +01:00
Michael Meeks
877e4fd587 Allow optional color to be passed into setBorders.
Change-Id: I8a5cc57bda07d1c0671262c22b93d012f2018eb0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91098
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 19:35:24 +01:00
Michael Meeks
fa14102b3b Restore Javascript protocol logging.
If you don't want protocol logging by default in debugging builds
then either poke loolwsd.xml:

<protocol type="bool" descr="Enable minimal client-site JS protocol logging from the start">false</protocol>

Or - configure with --disable-debug and --disable-debug-protocol.

Also remove redundant and unused co-ordinate parameters to the
message queue, and logging.

Change-Id: I489e32ef4758a6f0ef35c8d8d322a402a3e268e6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91096
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 19:35:04 +01:00
Tamás Zolnai
952a7acd7e cypress: mobile: remove accidentally pushed only().
Change-Id: I78bcf632cc135a785296ece9a7e1c07070cd71ca
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91092
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-26 17:11:31 +01:00
Michael Meeks
795fac61dc test: run unit-copy-paste on its own to make it happier.
Change-Id: Ib6aa1f40ba346381937210e600636e8d904a4713
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91104
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 16:15:34 +01:00
Tamás Zolnai
732a69e69b cypress: use hardcoded value as WSD hash.
cypress test framework has a problem with some
specific hashes (for example: 769e98018) and it
do not pass these values to the test code, which
make all test fail with 404 error.

Change-Id: I385b1621de25fdf90e6169bdff25eaf3c18cf81e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91101
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-26 15:58:22 +01:00
Corentin Noël
dbaf32c627 autotools: Add support for atomic helper library
On some platforms like Raspbian Buster, loolwsd need to be linked to the atomic helper library.

Change-Id: I0a8b921d85d499040b2e65d480116cbcb14b5089
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91102
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 15:32:30 +01:00
Aron Budea
5bb2840854 loleaflet: Wrong previews after reordering slides
While the original this.options was undefined, replacing it causes
a regression.

This commit partially reverts e82878d45b.

Change-Id: I92a4338ca3bb04ed1e36664b2eaed4b7a23c7183
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91097
Tested-by: Aron Budea <aron.budea@collabora.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
2020-03-26 12:57:26 +01:00
Tamás Zolnai
30161c9b4e mobile: don't show a dummy mobile wizard before sidebar content arrives.
If we show the mobilw wizard instantly after the mobile
wizard toolbar button is pushed, then mobile wizard will
be an empty bottom panel with an undefined content. It's
better to show the content, only after we get the
sidebar content from core.
For example, if the hamburger menu was displayed in the
bottom panel previously then we will see a white screen
first when we push the mobile wizard toolbar button. This
white screen is the background layout of the mobile wizard.

It looks wierd and also makes testing hard since we have
some wierd dummy HTML structures.

Change-Id: I852bce1ca1460b2210229bec294a249a47523099
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91062
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-26 12:45:35 +01:00
Michael Meeks
a73590d81f wsd: minimize wait when DocBroker terminates
Add checking up the stack to detect when we have clean queues
and buffers so we can exit fast.

Change-Id: I82c3843f816bbe869094c21f070774e6d034ac65
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90358
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-26 12:03:06 +01:00
Weblate
9c2f6382d2 update translations
LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 81.2% (338 of 416 strings)

Change-Id: I8b49030c370d554db036a0e186d6332a9263d0d0

update translations

LibreOffice Online/android-lib (Slovenian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I70effac3f9908b12815c430931a2292bf5dbed5b

update translations

LibreOffice Online/android-app (Slovenian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ie1fd88e1eae85134679f9f7285ab3c1420bf15ad

update translations

LibreOffice Online/loleaflet-help (Slovenian)
Currently translated at 83.9% (349 of 416 strings)

Change-Id: I53b08543ba97e157fc0e505bd98d69e1c70237a7

update translations

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

Change-Id: Ib6cedbdedcbf1c14204aae5c6a26964b99a09867

update translations

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

Change-Id: I41024ff5c600da3f26471c00a5c06c0380b6c1ec

update translations

LibreOffice Online/android-lib (Turkish)
Currently translated at 83.3% (10 of 12 strings)

Change-Id: Ibc0f532df8170198be67b2699a8b3c265bffde23

update translations

LibreOffice Online/android-app (Turkish)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I3ea29557fe41bc46faa7313875c095e5e45185fe

update translations

LibreOffice Online/loleaflet-ui (Turkish)
Currently translated at 99.7% (289 of 290 strings)

Change-Id: Idbe17cd7b879bd1333a6fa5554309a5a437d82a8

update translations

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

Change-Id: I39c6d1dca5c9acfb51ad46dea4fa549b38b9a220

update translations

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

Change-Id: I715122ed869741ae66f65efc8425b76fb024e0a8

update translations

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

Change-Id: Ide96c3d2ff684e67d1121c2d9bd3268353366f54

update translations

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

Change-Id: Iab76b9dfc1a8835fe8fb226e4003d73b5057782c

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 64.7% (269 of 416 strings)

Change-Id: I121156a5f5e9832237aa4eb7ed3bd88af3d2b14c

update translations

LibreOffice Online/loleaflet-ui (Hebrew)
Currently translated at 99.3% (288 of 290 strings)

Change-Id: I39c7a2d9bbc0dc4f3fa95e406561f9b313ec9e03

update translations

LibreOffice Online/android-app (Hebrew)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ib11902d876161296d1694b0e456c302355523424

update translations

LibreOffice Online/android-lib (Bulgarian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I9229d448dc8832226981faba1ccbc7a821edc396

update translations

LibreOffice Online/android-app (German)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I9596247c4d194c758759f2e9183626e4e569f548

update translations

LibreOffice Online/android-lib (German)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I76299ef7b35754ae2ca9e7975950ad5b4ecf0424

update translations

LibreOffice Online/loleaflet-ui (Hebrew)
Currently translated at 99.3% (288 of 290 strings)

Change-Id: I7500a2968f0b2d5a108058df434632a4543e476c

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: I80d34bc21e0b40f4e01d4458be57064cd7ae0013

update translations

LibreOffice Online/android-app (Swedish)
Currently translated at 14.0% (14 of 100 strings)

Change-Id: I4705a3cd09a3de1b7ee4d183980b6f1fe85f4d3f

update translations

LibreOffice Online/android-lib (English (United Kingdom))
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Ice3d527ec2672769988ba26f55d20e29d5ace51f

update translations

LibreOffice Online/android-lib (Hebrew)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Id9f4b645ce296ec177d5653397b8135f532b44e2

update translations

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

Change-Id: I954a911766bc78bd2501bcdf1dde405ed5ea20c7

update translations

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

Change-Id: I71e722ad3cd5d6602b069ef71329860c4cd8d6b9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90866
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-26 12:00:37 +01:00
Aron Budea
e82878d45b loleaflet: Reordering slide always moved it to the beginning
Get partsPreview._partsPreviewCont correctly.

Regression since 74adf2f61a.

Also get partsPreview.options correctly.

Change-Id: I04488663d69a8677414d8b5250bff771114f58ed
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90898
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-26 11:59:34 +01:00
Michael Meeks
77576cdb4b Parallelize tests.
Not deleting each other's jails mails all the difference.

For now parallelize in smaller groups; some of the tests are
quite heavy resource-wise.

Change-Id: I04e5cdf66ba20cbd4f9f05b9d630141814eb3801
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90982
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 10:49:49 +01:00
Pedro Pinto Silva
e9ff77a978 Mobile: chart: Add some commands to the black list as
they were currently opening tunneled dialogs. Some if not all already have icon so if in the future we can enable this via mobilewizard the icon should fall right into place.

Change-Id: I3badd8dcb850add6e5969a7cc38d6dc72250872e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91060
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-03-26 10:20:04 +01:00
Tor Lillqvist
3a5d193fdc Move the window.mode.* functions to global.js for clarity
No idea why they were in Control.Toolbar.js.

Change-Id: I18ab812317b4bfb71d0c63a4cb2283d4fbaa3b54
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91087
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-26 10:13:02 +01:00
Ashod Nakashian
63605979d8 leaflet: don't steal focus from the Formula-Bar
This fixes an odd focus-stealing bug that resulted
in the text being typed backward (characters were
added towards the left).

To reproduce, select a cell with text, click into
the Formula-Bar. Immediately the focus is stolen
by the document (the cell), which is annoying.
Next, if the cursor is actually inserted in the
middle of the text, new characters are added to
the left of the cursor!

After fixing the above issues, it turned out
that simply moving the mouse into the document
stole the focus from the Formula-Bar (actually,
the Formula-Bar lost the focus but the document
doesn't get it).

A related change is that the mouse-leave logic
for the sidebar should not be applied to other
dialogs, so now we only handle that event for
the sidebar.

Change-Id: I8ed3f6b08e99e9379e1bfe51f34f5d2f6ed22483
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91085
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-26 08:21:49 +01:00
Ashod Nakashian
cfa63e329b leaflet: _isCalcInputBar -> isCalcInputBar
Prepare for accessing isCalcInputBar from outside.

Change-Id: I2cbeb1791ff263d830dd6a273d63108063bc2a57
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91084
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-26 08:21:30 +01:00
Ashod Nakashian
b4c6999d8c leaflet: add margin between sidebar and formula-bar
And remove extra lastActiveTime reset.

Change-Id: If7821e07fc61a54dc8caee5983198b475f43098c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91083
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-26 08:18:09 +01:00
Ashod Nakashian
46234cb859 leaflet: refactor dialog isCursorVisible into member
Safer and more readable.

Change-Id: I37b551c0b8f7f445ed09a1ab24e00e06c64e8dad
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91082
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-26 08:17:36 +01:00
Tor Lillqvist
4dd95f833d Propagate core and online git hashes to the Settings for the iOS app
The git hashes now show up in the Settings app, without having to run
the Collabora Office app, open a document, and check the About dialog.

The core git hash is taken from the core build directory's
instdir/program/setuprc.

Also, drop the fairly pointless lone Finnish localisation of the
Settings strings.

Change-Id: I56631f8facde017ed99038209c55f516386eab99
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91073
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-26 00:26:58 +01:00
Tamás Zolnai
98c08b50ce cypress: mobile: fix line width test in shape related test suit.
Copy+paste error.

Change-Id: I558f8d76df7cbec8c34645a02fbe1e9efbfe1f22
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91063
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-25 23:09:03 +01:00
Michael Meeks
b30757417b jail removal - don't use flaky/experimental new C++ filesystem.
Simply not removing jails on some systems.

Change-Id: Idb1306fec83acebc61dec2e7a240ad89e7c91437
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91067
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-03-25 20:18:52 +01:00
Tor Lillqvist
ff7db2b229 Get rid of the iOS app specific "context toolbar"
The less special-case code/logic/UI, the better the world is.

It had weird unintended side effects anyway. (In the iOS app, which
was the only place where it was used.) For instance, in a spreadsheet
document on iPhone, after loading the document, the normal "mobile
wizard" style context menu did not appear, no matter how long you
pressed a selected cell. But if you first got the context toolbar to
show up once, and after that selected some cell and long-pressed it,
the mobile wizard style context menu did appear, just as when using
web-based Online on the same device.

Note that despite that the code in Control.ContextToolbar.js was used
only in the iOS app (L.control.contextToolbar() was called only if
window.ThisIsTheiOSApp), the file did contain code for non-iOS, too.

Change-Id: Icdbfc7e71f77539c1bcb5ac8cf6984375297a4bd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91055
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-25 16:29:25 +01:00
Ashod Nakashian
c545b64b3a leaflet: hide the cursor when a dialog has the focus
Change-Id: I3482a227d508b0a24adc875833de91091ee66a2f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91054
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 14:59:49 +01:00
Ashod Nakashian
fd978cf98e Revert "Desktop: Calc: formular bar: Decrease size of selection..."
The commit in question breaks clicking into the Formula-Bar.
With that commit, the Formula-Bar doesn't take focus upon clicking
most of the time, and only rarely does so (possibly depending on
the precise location of the click).

This reverts commit b906c6985a.

Change-Id: I2ff6b531b479c265935cbc44af4d2cbbaa7c418b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91050
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-03-25 14:07:06 +01:00
Tor Lillqvist
09821236ef Add two pseudo-assertions for code that IMHO will never be executed
I suggest we introduce this convention for such assertions.
Feel free to modify the message syntax. The idea is that if you notice
some code block you think will never be executed, add a comment and a
console.log with a message in this syntax. If somebody then later sees
that logging appear after all, they can add/modify a comment describing
what is actually going on.

Change-Id: I76302e414d78912b6d20ba149c69d00d995613c6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91048
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-25 13:19:02 +01:00
Ashod Nakashian
30f9f7bfdc leaflet: allow keyboard with Calc MobileWizard
This is to facilitate searching for a formula,
which is shown as a list via the Mobile Wizard.

Change-Id: If4ae2dfbce1c9cf153354d1c3a2ff7a8f4af3ea2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91020
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 12:29:25 +01:00
Ashod Nakashian
e9157a886f leaflet: don't allow focus stealing
This improves typing in the formula-bar.

Change-Id: I14359b5b4e842b68b1807d286e1831b3805bb4ea
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91019
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 12:29:14 +01:00
Ashod Nakashian
41cd5a5624 leaflet: reuse member functions
Change-Id: I8c0c58d2ab175b271df200de2b100e61c655db5f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91018
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 12:29:05 +01:00
Ashod Nakashian
9ccea6c8b8 leaflet: give editor focus when closing sidebar
And remove ineffective focus on closing sidebar.

Change-Id: Iac6d46c91ca70949c73cd8cdb29416ecb80be409
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91017
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 12:28:46 +01:00
Ashod Nakashian
2d36b936ba leaflet: shouldAcceptInput -> canAcceptKeyboardInput
Clearer name to differentiate intent from expectation.

Change-Id: I74cc4c3bca11782bdd9cf72d6af4534357cefa64
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91016
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 12:28:37 +01:00
Ashod Nakashian
d6526b4982 cypress: check keyboard visibility when editing shapes in writer
Change-Id: I1580f4620459797b95eecb88edbcd12406531618
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90992
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 12:28:21 +01:00
Ashod Nakashian
0b7f70786c leaflet: do not expose map to cypress tests
We only need to expose a couple of helpers
to test the keyboard and clipboard, which
are not possible to test via the UI.

This patch reduces the surface area of
exposed code to testing, to avoid misuse.
The only needed helpers should be made
available, and they are read-only functions,
so there is no risk of changing the internal
state from test code.

Change-Id: Id4a1800e3d3b9364754a18fb11f61df612e56490
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90991
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 12:28:09 +01:00
Tor Lillqvist
b58bda96a3 Comment out verbose socket traffic logging
This logging just made it harder to see any temporary logging you add
while debugging a problem. When you need the socket traffix logging,
it is trivial to un-comment these two logging calls again.

Change-Id: Ia8fde2c7b841f6b112784cb1c2618a35fddc0f8e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91003
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-25 12:12:48 +01:00
Pedro Pinto Silva
082b407c35 Mobile: Hamburger: Due to latest changes the hamburger needs to be realigned when
menu is open and the quarter circle became a ellipse. Fix for these.

Change-Id: I0e31f702bc006c2e87705d1d63e3fa939270d5ca
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90923
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-03-25 11:51:17 +01:00
Tamás Zolnai
9f20130c9f cypress: mobile: reenable this test.
Change-Id: I9cf356b3c7e41ac0a07f82124bd26b16a9a57cd2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91035
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-25 11:35:17 +01:00
Tor Lillqvist
07461cbe69 Bin pointless global constant variables L.INCOMING and L.OUTGOING
They weren't even used consistenly instead of the literals 'INCOMING'
and 'OUTGOING'.

Change-Id: I70da22df669f8eaa5943b460e5b12b3cf100ca8e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91002
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-25 11:26:38 +01:00
Pedro Pinto Silva
d80b62326a Mobile: Calc: Chart: add axis contextual icons
Change-Id: If5b572430e02f33f0f5e41698a509a290c61feb7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90926
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-25 10:46:40 +01:00
Tamás Zolnai
44e219ce55 cypress: mobile: disable this unstable test.
Change-Id: I0205637fa5a167062de16e1fe389b6f64eaed148
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91030
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-25 10:42:39 +01:00
Pedro Pinto Silva
9283614e11 Mobile: MobileWizard: Checkbox row: fix
bug appearing on some browsers' computed css rules, namely webview via apk

Change-Id: I09d4c9525e4d2994ad81606cf837b3e381ceb3d2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90993
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-24 16:11:40 +01:00
Pedro Pinto Silva
aa7091dc10 Mobile: add missing icons for share as and rev-history
Change-Id: I37b2ca41824e8d0aed7ff03cddb32b1c4ce2949f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90981
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-03-24 14:28:16 +01:00