Commit graph

11122 commits

Author SHA1 Message Date
Tamás Zolnai
a795117f60 cypress: mobile: improve copying via context menu.
So we don't need to close the mobile wizard before copying.
The main issue was with contains() method, which first
selects the HTML items and waits until these items gets
the content 'Copy'. What we actually need is to wait until
an item appears with the content 'Copy'. Not the existing
items's content is updated with the 'Copy' text, but new
items are created.

Change-Id: I235d2756ce41a099267fa335c215d3eca6f468c2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91913
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-08 15:26:18 +02:00
Gabriel Masei
0ac330f599 Add segmentation fault metric for Kit processes
Change-Id: Ifb0de004274213ef512f601e4419f98f456c7288
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91857
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-08 15:06:39 +02:00
Tamás Zolnai
56c6f5cc48 cypress: mobile: add some tests for alignment properties in Calc.
Change-Id: I6a0209a484041a3df44e5472a4b0679193dd38c1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91912
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-08 14:30:13 +02:00
Miklos Vajna
e087a0079c ForKitProcWSHandler: remove std::enable_shared_from_this inheritance
This was added in commit 70af76e28c
(Replaced pipe with websocket based on Unix socket in communication with
ForKit, 2020-04-02), but it seems to me that the shared_from_this()
member function (which is now available, due to ineritance) is not
actually called anywhere, so this is not necessary.

Additionally, Debian 8 / gcc-4.9 has problems compiling this:

	In file included from /usr/include/c++/4.9/bits/shared_ptr.h:52:0,
			 from /usr/include/c++/4.9/memory:82,
			 from wsd/AdminModel.hpp:13,
			 from wsd/AdminModel.cpp:12:
	/usr/include/c++/4.9/bits/shared_ptr_base.h: In instantiation of ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<ForKitProcWSHandler>; _Args = {std::shared_ptr<StreamSocket>&, const Poco::Net::HTTPRequest&}; _Tp = ForKitProcWSHandler; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’:
	/usr/include/c++/4.9/bits/shared_ptr.h:316:64:   required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<ForKitProcWSHandler>; _Args = {std::shared_ptr<StreamSocket>&, const Poco::Net::HTTPRequest&}; _Tp = ForKitProcWSHandler]’
	/usr/include/c++/4.9/bits/shared_ptr.h:588:39:   required from ‘std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = ForKitProcWSHandler; _Alloc = std::allocator<ForKitProcWSHandler>; _Args = {std::shared_ptr<StreamSocket>&, const Poco::Net::HTTPRequest&}]’
	/usr/include/c++/4.9/bits/shared_ptr.h:604:42:   required from ‘std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = ForKitProcWSHandler; _Args = {std::shared_ptr<StreamSocket>&, const Poco::Net::HTTPRequest&}]’
	./wsd/LOOLWSD.hpp:201:97:   required from here
	/usr/include/c++/4.9/bits/shared_ptr_base.h:1096:64: error: call of overloaded ‘__enable_shared_from_this_helper(std::__shared_count<>&, ForKitProcWSHandler*&, ForKitProcWSHandler*&)’ is ambiguous

So just remove it till that inheritance is needed.

Change-Id: I74d38b90bcf06d4490feed31783c098ed831f1ee
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91879
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Gabriel Masei <gabriel.masei@1and1.ro>
2020-04-08 13:52:35 +02:00
Tamás Zolnai
4d270dffac cypress: mobile: calc: add more tests for number formatting.
Change-Id: I6720040a296ce9cb1185b428a4a062a7f61c27fa
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91884
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-08 13:06:25 +02:00
Tamás Zolnai
8986e8068f cypress: mobile: try to fix random failure in calc spellchecking test.
Change-Id: I0c4bda087a651e668ea0bbff285d11996768fc05
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91883
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-08 13:06:14 +02:00
Tor Lillqvist
5270284701 Further re-work of document saving in the iOS app
Now, finally, I think it works as it should, knock on wood. After an
auto-save (or explicit save by tapping the button), the edited
document does show up with its auto-saved contents if you open it from
iCloud Drive or Nextcloud while it is still open in the iOS app.

What I was missing was that the document hadn't actually been saved by
the core (to the temporary copy) until we get the
LOK_CALLBACK_UNO_COMMAND_RESULT for the .uno:Save. We must call the
-[UIDocumentsaveToURL:forSaveOperation:completionHandler:] only upon
receiving that callback.

Change-Id: I10486f3bc587c871ee2644a0c097493f33baf420
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91880
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-08 12:19:38 +02:00
Tamás Zolnai
bdef8193b8 cypress: simplify output error matcher.
Change-Id: I18392d8aabd9f3f4ba43139f9e951faead8b9667
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91876
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-08 11:24:38 +02:00
Tamás Zolnai
efdc8b25b4 cypress: run JS error check also for make run commands.
Change-Id: I0a00d64e2222cbad5fc7e89711a89bb3620f793f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91875
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-08 11:22:20 +02:00
Tamás Zolnai
82f022d8b9 cypress: try to fix TypeError: cy.waitUntil is not a function.
Import cypress-wait-until directly in the test file. This module
is not intended to use everywhere, so it's not a big issue
if we need to import it before use.

Change-Id: I33ff8ae1eae2ec124b286cd7760d5571e5c67531
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91874
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-08 11:11:31 +02:00
Michael Meeks
a2b9fc474a Proof: re-factor - publicise some internals to make testing easier.
Also add dummy, run-every-build test to validate wopi like proofs.

Change-Id: Ic2dc647a8d61693ae87b6523aaa30632979fd5d6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91854
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-08 10:58:49 +02:00
Miklos Vajna
60908ed88c admin: only kill document pids
unit-admin is currently disabled, so... how to reproduce:

Edit loleaflet/admin/src/AdminSocketOverview.js to try to kill e.g. pid
0.

Expected result:

[ admin ] WRN  Invalid PID to kill (not a document pid)| wsd/Admin.cpp:168

Change-Id: I06dda68b38096689c1b9327cefba2cbfc96805f8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91868
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-04-08 10:23:59 +02:00
Tor Lillqvist
0930286e2d Fix problems after my 293f4913d2
It is enough to call the -[UIDocument
saveToURL:forSaveOperation:completionHandler:] only in
DocumentBroker::sendUnoSave(). And on the other hand, in
-[DocumentViewController bye] we can't want for the
LOOLWSD::lokit_main_mutex as the main queue is needed for parts of
what the saveToURL does.

Also, use a separate copy of the document as the file that is actually
edited by LO core. This matches what the Android app does. I think it
is useful to do this in order to avoid some hangs that I noticed. They
probably were caused by both LO core and the system frameworks
occasionally accessing the same document file at the same time.

Change-Id: Idb65be23a7cb6ad1288fbbd23c7471e0fb8d52f4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91851
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-08 00:01:30 +02:00
Jan Holesovsky
61ad718671 Revert "Force portrait for the moment also for iPhone in the iOS app"
Landscape is supposedly working fine now.

This reverts commit d474f06040.

Change-Id: I28e6d521ee0c4906e07b99b8cc6c24761b20f2b3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91849
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-07 21:04:08 +02:00
Jan Holesovsky
af4e930107 Revert "android: Force portrait for the moment."
Landscape is OK again.

This reverts commit db585f8c64.

Change-Id: I82cafe8229a5c170eee66467ad15dbdab668f1dd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91843
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-07 21:03:59 +02:00
mert
f634264d89 mobile: Add search in the readonly mode
Change-Id: I059b0337096f9eed21031724dbec22f29807a979
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91072
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-07 20:28:40 +02:00
Tamás Zolnai
35290a0487 cypress: mobile: improve logging related to calc spellchecking test.
Change-Id: I8a57e9d90eff157f22d0cb37a59a4059ac862fd7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91839
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-07 18:06:11 +02:00
Tor Lillqvist
ab44bfaf5f In the iOS app we have the branding files in the Branding folder
(So that it is easier to copy them freshly in the configure script.)

Change-Id: Ib8210850abcb259cb6be7ff0d708de0cf05c135d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91838
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-07 17:56:05 +02:00
Tamás Zolnai
af40fb3618 cypress: add some logging for helper functions.
Change-Id: Ib8ff54208d47c7d921615f72b530e2404c26f3a6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91828
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-07 16:36:59 +02:00
Tamás Zolnai
d5691b45e4 Avoid destroying other popups by tooltip.
Change-Id: Ida77fba1716fd380fecbfefe3e0f99ac231afb31
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91824
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-07 16:36:50 +02:00
Tamás Zolnai
7826d75b45 cypress: mobile: extract openHamburgerMenu() and closeHamburgerMenu() method.
Change-Id: Ib288ccabee7aa06c5e9b8b0c54ac88055c1ae820
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91827
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-07 16:24:53 +02:00
Pedro Pinto Silva
504ad7c48e Mobile: Calc: mWizard: format number: add missing icons and adjust css
Change-Id: I50e0c0c96d8d13082c977ca2538d2f4c4cc89a24
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91826
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-04-07 15:43:17 +02:00
Tamás Zolnai
dd42ea0da7 cypress: mobile: extract openMobileWizard() and closeMobileWizard() method.
Change-Id: I02e33406510ade9cfc6de5f31854cee99a7c1fc0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91823
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-07 15:32:16 +02:00
Gabriel Masei
70af76e28c Replaced pipe with websocket based on Unix socket in communication with ForKit
Change-Id: I80f1a4e84ca6820503966a8ee5d9958a150eac14
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91585
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-07 15:04:47 +02:00
Tamás Zolnai
b045fa90f2 cypress: mobile: create a separate mobile helper file.
Change-Id: I3d57a8a691f8085db12b00e7b508295ce8f33a26
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91807
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-07 13:50:07 +02:00
Martin Milata
c571d9286d tdf#129895: handle symlinks when populating chroot
In linkOrCopy, the nftw() function is used without the FTW_PHYS flag to
populate child roots from systemplate. From man nftw:

  FTW_PHYS
    If set, do not follow symbolic links.  (This is what you want.)
    If not set, symbolic links are followed, but no file is reported twice.

Because the order in which directory entries are visited is not defined,
having multiple symlinks to a file results in only one of the paths
being created in the chroot.

This is not really a problem because loolwsd-systemplate-setup creates
systemplate without symlinks. Fixing it might prevent unpleasant
surprises in the future though, and might possibly allow to make
systemplate and chroots smaller (also the manpage says that you want
it:)).

The commit adds FTW_PHYS flag to the call as well as symlink handling.

Change-Id: I01354f529b5d340185988ed026f266caf17a6881
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87749
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-07 13:22:42 +02:00
Tamás Zolnai
aeb48c3ad5 cypress: Catch any "Error:" in log.
Change-Id: Ia82f896e7ff4299e25ac38283f0e518bef25f875
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91808
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-07 12:40:16 +02:00
Pedro Pinto Silva
63744d641b Mobile: mWizard: make sure every row item with a checkbox is properly aligned by
- Add class
- make sure there is no float position affecting those
(previously that ^css rule was applied to all elements that have in their id the prefix checkbutton via "div[id^=checkbutton]" but not all elements were being set with that convention in mind)

Change-Id: I285955d956a60002065421c4e8384df6359c4d68
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91806
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-04-07 11:46:54 +02:00
Jan Holesovsky
f3ac1bf297 mobile: Load a device-form-specific branding-*.css too.
Change-Id: Iac94c6993d036a10b3f4764e79f38721482acc87
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91800
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-07 11:05:52 +02:00
Weblate
67d4f7add6 update translations
LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 36.6% (107 of 292 strings)

Change-Id: I064a4cd65d2da5c0868b723491374f5d8fa2010f

update translations

LibreOffice Online/android-app (Portuguese)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: If97285f20b6a576be13782b7e6fac1da77106c56

update translations

LibreOffice Online/ios (Norwegian Bokmål)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I5ae4b60ad2ff62e1fb7ec07e4af62a71c4ca3fae

update translations

LibreOffice Online/ios (Asturian)
Currently translated at 80.0% (4 of 5 strings)

Change-Id: I34220c5e4a5070868047c2b446172d0a2143f1c8

update translations

LibreOffice Online/ios (Upper Sorbian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: Ie7a92fd3deb77f4ae9ff963d5fcbd0188693f001

update translations

LibreOffice Online/ios (Lower Sorbian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I0c2c1847badc0f3457fa80a134429cc9b78e2d80

update translations

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

Change-Id: I404d21c68f8748e724ee028c0d8b98d17dda9bd4

update translations

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

Change-Id: I8c71fd434275e608ae6faf089732be64be7fd66e

update translations

LibreOffice Online/android-app (Bulgarian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I7cb45cf765460a75e9c56d66de2c0ce5c543eb43

update translations

LibreOffice Online/ios (Bulgarian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I8f87197b12c07809dd277d87739b8203be2561d1

update translations

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

Change-Id: I3b9e39b0229b8d01ed42012ca40e5b22b832838f

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 99.7% (291 of 292 strings)

Change-Id: I526e812b6c2012d9b53d15395468d6af7a9c9ef0

update translations

LibreOffice Online/android-app (Slovak)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I83290565e16c21c9f5c5f0fd6abdf3615c606e05

update translations

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

Change-Id: I10445623d69f6d9a46b7f24fc6781a488a98bb1b

update translations

LibreOffice Online/ios (Slovak)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: Ieb8085e4ac8b2fd09b3de5c716a45d7eee74a5b2

update translations

LibreOffice Online/loleaflet-help (Slovak)
Currently translated at 98.6% (410 of 416 strings)

Change-Id: I93e8cabdc1084e54dc3771d2a9a1553107b28933

update translations

LibreOffice Online/loleaflet-ui (Slovak)
Currently translated at 100.0% (292 of 292 strings)

Change-Id: I5d38a321e0964155ac4636a08b2db8ff80ec0f7e

update translations

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

Change-Id: If61774f7b7071df7c3e54b02b42d0cd192fc7781

update translations

LibreOffice Online/ios (Czech)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: Ibdada28a5072d74992934a279e84da6f2fc2cf5f

update translations

LibreOffice Online/loleaflet-ui (Czech)
Currently translated at 100.0% (292 of 292 strings)

Change-Id: I335ddcce6e05f177fc823aa7d9388683de425bf9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91667
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-07 10:45:49 +02:00
Tamás Zolnai
35b3f0ea90 cypress: mobile: fix exception related to currentTarget.
Change-Id: I672ceb28c6f14b8c08103d6c9677707b35cbdfc8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91797
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-07 10:12:33 +02:00
Miklos Vajna
946fa38a22 admin console: fix handling of out of range kill parameter
Catch that, similar to when handling an invalid argument.

Change-Id: I7405355f0b962673069dbd33dbab8c9e3042c4bf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91794
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-04-07 09:35:54 +02:00
Pranam Lashkari
212d707227 leaflet: stoped view jumping when deselecting shapes/images
cause of the problem: if the last position of the cursor
before selecting a complex object is out of view
then the page will scroll to that point.
This happens because scrolling takes place between
deselecting object and cursor position update

test failing problem with aba812f resolved

Change-Id: I7c1aea4a4a8b83cec9bd166adaa0e099ad16f070
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91781
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-06 21:47:10 +02:00
Andras Timar
4829c055e9 use the correct icon for 'Optimal wrap'
Change-Id: Ia1457162ab76eb05193ac95a45e893a969aed42c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91777
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-06 20:53:09 +02:00
Tor Lillqvist
293f4913d2 On iOS, make the document show up as modified also after auto or explicit save
It is not enough to just have the core code rewrite the document file.
We need to do the same dance as in -[DocumentViewController bye].

I wonder if it would be cleaner to copy the document file to some
temporary location when opening it, and use only that copy in Online
and core, and then after core has saved it (either for an auto-save,
an explicit save, or when closing the document) do the -[UIDocument
saveToURL:forSaveOperation:completionHandler] thing?

Change-Id: I78fec08a90424780dc6e794347a0acf2c64e1dab
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91741
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-06 20:52:47 +02:00
Andras Timar
8f45843b78 typo: sinfieldcontrols -> spinfieldcontrols
Change-Id: Id5312df67259cfc177e29635fb27ba2498c58100
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91776
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-06 20:39:44 +02:00
Andras Timar
9394f7a34d do not display (empty) image in Franction number format Denominator places field
Change-Id: Ie9c4bb72cbfab4a5f67dad3536811eddce6feea3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91775
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-06 20:39:22 +02:00
Andras Timar
d9aca51a5a add 3 empty images, mobile wizard wanted to load them
Change-Id: I41190758e27ab76896b437d1697c4bf7ae1725c1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91774
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-06 20:39:03 +02:00
Tamás Zolnai
e86093ccd7 Revert "leaflet: stoped view jumping when deselecting shapes/images"
This reverts commit aba812fc9f.

Change-Id: I06dab52595ccd8f565e465b1c6be4e4567e16e82
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91756
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-06 16:06:28 +02:00
Tor Lillqvist
c05f7a4ad0 Argh, had forgotten to commit the s/Document/CODocument/ in the project file
Change-Id: I795d78cddbfbca2d9df17a662ec4800c40b68ace
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91742
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-06 12:54:28 +02:00
Tor Lillqvist
312caf918b Add comment
Change-Id: I452b1d6fc150d014a5d55df71e9dae96288e67de
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91740
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-06 12:49:18 +02:00
Tor Lillqvist
05a29a19d5 Fix typo in comment and elaborate
Change-Id: I2e5560a27d8471188ebb159efd29192a10295547
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91739
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-06 12:48:01 +02:00
Pedro Pinto Silva
496c4162a8 Calc: desktop: formula bar: Decrease size of selection handles and adjust position, improving
and fixing changes started with b906c6985a

Change-Id: Ic9927a725240658d03ed764b1136088edc8d99f3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91091
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-04-06 12:13:28 +02:00
Jan Holesovsky
0f96ad6569 tablet: Avoid gap between menu and the upper toolbar.
Change-Id: I25845dbe6ddae8f35885b94a9d01902f3a4daa9c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91649
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-06 12:06:55 +02:00
Jan Holesovsky
7d358823bb tablet: Show the menu by default as on iPad.
Change-Id: I382de5784ba24e4e6409e743cbf586f691637815
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91648
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-06 12:06:45 +02:00
Jan Holesovsky
9af7932213 tablet: Make the upper toolbar scrollable with swiping as on phones.
Change-Id: I2118900f0f37fe6714691d1a9c054898cdac8a95
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91647
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-06 12:06:29 +02:00
Jan Holesovsky
888649f9dc mobile: Seems that now we can remove the last remaining @media selector too.
Change-Id: Ife182ef2d9ce56a2bb7b6a6bdf8240c483880ddb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91630
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-06 12:06:12 +02:00
Miklos Vajna
42c8417e34 admin fuzzer: improve this further, so it can find interesting paths faster
1) Don't actually kill anything with the kill command, otherwise kill(0,
SIGKILL) will kill the fuzzer itself.

2) Don't require a valid signature when authenticating with JWT, since
the private key is generated on each process startup.

3) Log when the JWT would be invalid due to an expired timestamp.

Change-Id: I0da285617e27910329c0e7ed80a6d02e86344ccf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91737
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-04-06 12:03:39 +02:00
Jan Holesovsky
3cc25d6887 The sudden removal of 'Last modified...' when resizing looks odd.
Change-Id: Ia15c1b9b1dee2e7e87fcd5bd3ba660dce69e12c0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91629
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-06 11:13:44 +02:00
Pranam Lashkari
aba812fc9f leaflet: stoped view jumping when deselecting shapes/images
cause of the problem: if the last position of the cursor
before selecting a complex object is out of view
then the page will scroll to that point.
This happens because scrolling takes place between
deselecting object and cursor position update

Change-Id: I4046cf6728f7da32a4f6d89768e201982023afa9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91734
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-06 11:08:43 +02:00